Recent Releases of classes
classes - Version 0.4.1
Bugfixes
- Fixes
typing_extensionsversion resolution
- Python
Published by sobolevn almost 4 years ago
classes - Version 0.4.0
Features
- Breaking: removes
is_protocolboolean argument from.instance, now useprotocol=YourProtocolinstead - Adds support for concrete generic types like
List[str]andSet[int]#24 - Adds support for types that have
__instancecheck__defined viadelegateargument #248 - Adds support for multiple type arguments in
Supportstype #244
Bugfixes
- Fixes that types referenced in multiple typeclasses
were not handling
Supportsproperly #249 - Fixes typing bug with
ABCand mutable typeclass signature #259 - Fixes that
mypyplugin was failing on calling a typeclass without arguments #270
- Python
Published by sobolevn over 4 years ago
classes - Version 0.3.0
Features
- Breaking: drops
python3.6support - Breaking: now requires
typing_extensions>=3.10andmypy>=0.902 - Breaking: now
classestraversesmroof 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
mypytypechecking - Adds
.supports()method to typeclass to check if some instance is supported in runtime - Makes
.supports()a typeguard - Adds
Supportstype - Adds
AssociatedTypevariadic type
Misc
- Improves docs
- Python
Published by sobolevn over 4 years ago
classes - Version 0.2.0
Features
- Breaking: renames mypy
typeclass_plugintoclasses_plugin - Adds
python3.9support
Misc
- Updates dependencies
- Python
Published by sobolevn about 5 years ago