Build and packaging library
  • Python 49.4%
  • Makefile 37%
  • Shell 13.6%
Find a file
Jan Lindemann fd008b0a73
lib.Types.LoadTypes: Loosen type_filter type

In LoadTypes' constructor, allow the type_filter parameter to be of type Sequence[type[Any]] instead of list[type[T]]. a) Sequence is more generic than list, and b) with T instead of Any, trying to instantiate with an abstract class has mypy complain:

# E: Only concrete class can be given where "type[MyClass]" is expected [type-abstract]

- type_filter: list[type[T]] = [], + type_filter: Sequence[type[Any]] | None = None,

Not that this makes mypy complain that it needs an annotation at the places where LoadTypes is used.

Signed-off-by: Jan Lindemann <jan@janware.com>
2026-06-17 17:12:42 +02:00
.github/workflows ci.yaml: test-packaging.yaml@{master-test -> master} 2026-06-08 19:43:15 +02:00
bin bin, make, scripts: Re-add files necessary for packaging jw-build 2025-11-14 11:22:50 +01:00
conf conf/templates: Fix installation 2026-06-11 13:30:43 +02:00
make python-tools.sh, py-mod.mk: Use --symbol-filter 2026-06-12 07:33:07 +02:00
scripts python-tools.sh create-init: Code beautification 2026-06-12 09:58:56 +02:00
src lib.Types.LoadTypes: Loosen type_filter type 2026-06-17 17:12:42 +02:00
.gitignore Everywhere: Rename package "jw-build" to "jw-pkg" 2025-11-28 13:35:56 +01:00
HASH Release 1.0.0-241@suse-tumbleweed/x86_64 2026-06-15 07:10:43 +00:00
Makefile $(TOPDIR)/Makefile: include py-topdir.mk 2026-05-31 18:20:35 +02:00
RELEASES Release 1.0.0-241@suse-tumbleweed/x86_64 2026-06-15 07:10:43 +00:00
VERSION Start version: 1.0.0-241 2026-06-15 06:55:38 +00:00