mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-01 17:32:25 +00:00
Update known dunder methods for Python 3.13 (#14146)
## Summary Closes: #14145
This commit is contained in:
parent
cb003ebe22
commit
5b500b838b
1 changed files with 3 additions and 0 deletions
|
@ -265,6 +265,7 @@ pub(super) fn is_known_dunder_method(method: &str) -> bool {
|
|||
| "__reduce__"
|
||||
| "__reduce_ex__"
|
||||
| "__release_buffer__"
|
||||
| "__replace__"
|
||||
| "__repr__"
|
||||
| "__reversed__"
|
||||
| "__rfloordiv__"
|
||||
|
@ -297,6 +298,8 @@ pub(super) fn is_known_dunder_method(method: &str) -> bool {
|
|||
| "__xor__"
|
||||
// Overridable sunder names from the `Enum` class.
|
||||
// See: https://docs.python.org/3/library/enum.html#supported-sunder-names
|
||||
| "_add_alias_"
|
||||
| "_add_value_alias_"
|
||||
| "_name_"
|
||||
| "_value_"
|
||||
| "_missing_"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue