quacks icon indicating copy to clipboard operation
quacks copied to clipboard

🦆 Better duck-typing with mypy-compatible extensions to Protocol

Results 4 quacks issues
Sort by recently updated
recently updated
newest added

Updates the requirements on [sphinx](https://github.com/sphinx-doc/sphinx) to permit the latest version. Release notes Sourced from sphinx's releases. Sphinx 7.3.7 Changelog: https://www.sphinx-doc.org/en/master/changes.html Changelog Sourced from sphinx's changelog. Release 7.3.7 (released Apr 19,...

dependencies

Currently inheritance is mostly not implemented for `readonly` protocols. Before enabling we need to decide what happens when inheriting from a protocol with mutable members. Do we block this (like...

enhancement

For now, this is disabled: ```python class A(Protocol): b: int = 4 ``` According to PEP544, Protocols can declare an implementation that is usable as an abstract default.

enhancement
good first issue

https://github.com/ariebovenberg/quacks/blob/0900b7a9bf1bb26e7601db37311ce52bea4a7992/src/quacks/mypy.py#L37 Currently the class is still traversed even after a failure message. A simple `return` should do the trick

bug
good first issue