Arie Bovenberg
Arie Bovenberg
The docs say it is allowed to have an iterator `__slots__`, but that the `__slots__` attribute of the class will be the exhausted iterator. This is behavior that probably should...
It's still possible to enable arbitrary attributes on a class by adding `__dict__` to `__slots__`. This is explicitly endorsed in the documentation, but it may be worth adding a flag...
Some builtin/extension classes have a `__dict__`... ```python >>> RuntimeError().__dict__ {} ``` ...while others do not ```python >>> list().__dict__ # error >>> Decimal().__dict__ # error ``` I haven't found a way...
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...
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.
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
Hi there! I was surprised to see this package, because `inspect.unwrap` claims to do this. However, looking at your code you go a lot further (i.e. inspecting closures). Perhaps you...
# Description # Checklist - [ ] Build runs successfully - [ ] Docs updated # Release checklist (maintainers only) - [ ] Version updated in ``pyproject.toml`` - [ ]...
Almost all modern datetime libraries support precision up to nanoseconds. There has been some discussion in the past to add it to Python, but there seems to be limited demand...
There are two design questions for `DateDelta`: - Currently, `DateDelta` stores years, months, weeks, and days separately. However, in the Gregorian calandar, years are _always_ 12 months, and weeks are...