Update known dunder methods for Python 3.13 (#14146)

## Summary

Closes: #14145
This commit is contained in:
Dhruv Manilawala 2024-11-07 11:39:00 +05:30 committed by GitHub
parent cb003ebe22
commit 5b500b838b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -265,6 +265,7 @@ pub(super) fn is_known_dunder_method(method: &str) -> bool {
| "__reduce__" | "__reduce__"
| "__reduce_ex__" | "__reduce_ex__"
| "__release_buffer__" | "__release_buffer__"
| "__replace__"
| "__repr__" | "__repr__"
| "__reversed__" | "__reversed__"
| "__rfloordiv__" | "__rfloordiv__"
@ -297,6 +298,8 @@ pub(super) fn is_known_dunder_method(method: &str) -> bool {
| "__xor__" | "__xor__"
// Overridable sunder names from the `Enum` class. // Overridable sunder names from the `Enum` class.
// See: https://docs.python.org/3/library/enum.html#supported-sunder-names // See: https://docs.python.org/3/library/enum.html#supported-sunder-names
| "_add_alias_"
| "_add_value_alias_"
| "_name_" | "_name_"
| "_value_" | "_value_"
| "_missing_" | "_missing_"