mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
gh-118465: Add __firstlineno__ attribute to class (GH-118475)
It is set by compiler with the line number of the first line of the class definition.
This commit is contained in:
parent
716ec4bfcf
commit
153b3f7530
17 changed files with 61 additions and 89 deletions
|
@ -2035,7 +2035,7 @@ def _test_simple_enum(checked_enum, simple_enum):
|
|||
)
|
||||
for key in set(checked_keys + simple_keys):
|
||||
if key in ('__module__', '_member_map_', '_value2member_map_', '__doc__',
|
||||
'__static_attributes__'):
|
||||
'__static_attributes__', '__firstlineno__'):
|
||||
# keys known to be different, or very long
|
||||
continue
|
||||
elif key in member_names:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue