Skip to content

Commit 1ebfa63

Browse files
committed
style: Spacing
1 parent 40ebec0 commit 1ebfa63

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/griffe/dataclasses.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,16 +343,22 @@ def __init__(
343343
"""
344344
self.name: str = name
345345
"""The object name."""
346+
346347
self.lineno: int | None = lineno
347348
"""The starting line number of the object."""
349+
348350
self.endlineno: int | None = endlineno
349351
"""The ending line number of the object."""
352+
350353
self.docstring: Docstring | None = docstring
351354
"""The object docstring."""
355+
352356
self.parent: Module | Class | None = parent
353357
"""The parent of the object (none if top module)."""
358+
354359
self.members: dict[str, Object | Alias] = {}
355360
"""The object members (modules, classes, functions, attributes)."""
361+
356362
self.labels: set[str] = set()
357363
"""The object labels (`property`, `dataclass`, etc.)."""
358364

@@ -390,6 +396,7 @@ def __init__(
390396

391397
self.extra: dict[str, dict[str, Any]] = defaultdict(dict)
392398
"""Namespaced dictionaries storing extra metadata for this object, used by extensions."""
399+
393400
self.public: bool | None = None
394401
"""Whether this object is public."""
395402

@@ -829,21 +836,28 @@ def __init__(
829836
"""
830837
self.name: str = name
831838
"""The alias name."""
839+
832840
self.alias_lineno: int | None = lineno
833841
"""The starting line number of the alias."""
842+
834843
self.alias_endlineno: int | None = endlineno
835844
"""The ending line number of the alias."""
845+
836846
self.runtime: bool = runtime
837847
"""Whether this alias is available at runtime."""
848+
838849
self.inherited: bool = inherited
839850
"""Whether this alias represents an inherited member."""
851+
840852
self.public: bool | None = None
841853
"""Whether this alias is public."""
854+
842855
self._parent: Module | Class | Alias | None = parent
843856
self._passed_through: bool = False
844857

845858
self.target_path: str
846859
"""The path of this alias' target."""
860+
847861
if isinstance(target, str):
848862
self._target: Object | Alias | None = None
849863
self.target_path = target

0 commit comments

Comments
 (0)