-
As spotted by @MichaReiser in https://github.com/astral-sh/ruff/pull/13992#pullrequestreview-2404711897, red-knot does not currently emit diagnostics if you attempt to iterate over an object that migh…
-
I'd also take `__mro_entries__`. I haven't submitted `__init_subclass__` yet though, so if that's a blocker I'll just bump this thread when I finish my first assignment.
-
That's a really underrated one. Extremely useful for delegation, per-class static attributes and implicit class gathering (that one is personally used by me when implementing persistent views for Disc…
-
May I do dunders: `__add__`, `__sub__`, `__pos__`, `__neg__`, `__mul__`, `__floordiv__`, `__truediv__`, `__divmod__`, `__mod__`, `__int__`, `__float__`, `__floor__`, `__ceil__`
-
Would be great to see, also the optional script there that auto adds it:
https://github.com/python-formate/flake8-dunder-all
One note- `__all__` should be a tuple is a good optional rule, since it'…
-
Opened as a followup to discussion at #9706.
Kudos to @AlexWaygood for scraping all dunders from CPython:
> This is the set of dunders that were surfaced in my script and are not currently liste…
bswck updated
9 months ago
-
https://github.com/apache/arrow/pull/37797 added a Python layer for working with the C Data Interface through capsules and defined dunder methods, described at https://arrow.apache.org/docs/dev/format…
-
### Checklist
- [X] I added a descriptive title
- [X] I searched open reports and couldn't find a duplicate
### What happened?
There are several cases within the conda program where conda relies on…
ghost updated
3 months ago
-
A recent release included support for alternative (i.e. non-"test") test prefixes.
Pytest, also uses a custom `__test__` dunder when discovering tests: [python.py#L349](https://github.com/pytest-d…
-
When importing a Pydantic model from a private module to a public module, the class can be rendered in MkDocs by adding it to the `__all__` dunder variable. However, this renders Pydantic model classe…