Releases: dry-python/classes
Releases · dry-python/classes
Version 0.4.1
Version 0.4.0
Features
- Breaking: removes
is_protocol
boolean argument from.instance
,
now useprotocol=YourProtocol
instead - Adds support for concrete generic types like
List[str]
andSet[int]
#24 - Adds support for types that have
__instancecheck__
defined
viadelegate
argument #248 - Adds support for multiple type arguments in
Supports
type #244
Bugfixes
Version 0.3.0
Features
- Breaking: drops
python3.6
support - Breaking: now requires
typing_extensions>=3.10
andmypy>=0.902
- Breaking: now
classes
traversesmro
of registered types
and fallbacks to super-types if some type is not registered - Adds generic typeclasses
- Adds caching to runtime type dispatch,
it allows to call already resolved instances way faster - Adds better typeclass validation during
mypy
typechecking - Adds
.supports()
method to typeclass to check
if some instance is supported in runtime - Makes
.supports()
a typeguard - Adds
Supports
type - Adds
AssociatedType
variadic type
Misc
- Improves docs
Version 0.2.0
Features
- Breaking: renames mypy
typeclass_plugin
toclasses_plugin
- Adds
python3.9
support
Misc
- Updates dependencies
Version 0.1.0
Initial release 🎉