mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +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
|
@ -1860,7 +1860,7 @@ _SPECIAL_NAMES = frozenset({
|
|||
'__abstractmethods__', '__annotations__', '__dict__', '__doc__',
|
||||
'__init__', '__module__', '__new__', '__slots__',
|
||||
'__subclasshook__', '__weakref__', '__class_getitem__',
|
||||
'__match_args__', '__static_attributes__',
|
||||
'__match_args__', '__static_attributes__', '__firstlineno__',
|
||||
})
|
||||
|
||||
# These special attributes will be not collected as protocol members.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue