@@ -343,16 +343,22 @@ def __init__(
343
343
"""
344
344
self .name : str = name
345
345
"""The object name."""
346
+
346
347
self .lineno : int | None = lineno
347
348
"""The starting line number of the object."""
349
+
348
350
self .endlineno : int | None = endlineno
349
351
"""The ending line number of the object."""
352
+
350
353
self .docstring : Docstring | None = docstring
351
354
"""The object docstring."""
355
+
352
356
self .parent : Module | Class | None = parent
353
357
"""The parent of the object (none if top module)."""
358
+
354
359
self .members : dict [str , Object | Alias ] = {}
355
360
"""The object members (modules, classes, functions, attributes)."""
361
+
356
362
self .labels : set [str ] = set ()
357
363
"""The object labels (`property`, `dataclass`, etc.)."""
358
364
@@ -390,6 +396,7 @@ def __init__(
390
396
391
397
self .extra : dict [str , dict [str , Any ]] = defaultdict (dict )
392
398
"""Namespaced dictionaries storing extra metadata for this object, used by extensions."""
399
+
393
400
self .public : bool | None = None
394
401
"""Whether this object is public."""
395
402
@@ -829,21 +836,28 @@ def __init__(
829
836
"""
830
837
self .name : str = name
831
838
"""The alias name."""
839
+
832
840
self .alias_lineno : int | None = lineno
833
841
"""The starting line number of the alias."""
842
+
834
843
self .alias_endlineno : int | None = endlineno
835
844
"""The ending line number of the alias."""
845
+
836
846
self .runtime : bool = runtime
837
847
"""Whether this alias is available at runtime."""
848
+
838
849
self .inherited : bool = inherited
839
850
"""Whether this alias represents an inherited member."""
851
+
840
852
self .public : bool | None = None
841
853
"""Whether this alias is public."""
854
+
842
855
self ._parent : Module | Class | Alias | None = parent
843
856
self ._passed_through : bool = False
844
857
845
858
self .target_path : str
846
859
"""The path of this alias' target."""
860
+
847
861
if isinstance (target , str ):
848
862
self ._target : Object | Alias | None = None
849
863
self .target_path = target
0 commit comments