Skip to content

Commit

Permalink
refactor: Use keyword only parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Nov 13, 2021
1 parent 8fecd9e commit d34edd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/griffe/dataclasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Docstring:
def __init__(
self,
value: str,
*,
lineno: int | None,
endlineno: int | None,
parent: Module | Class | Function | Attribute | None = None,
Expand Down Expand Up @@ -287,6 +288,7 @@ class Object:
def __init__(
self,
name: str,
*,
lineno: int | None = None,
endlineno: int | None = None,
docstring: Docstring | None = None,
Expand Down

0 comments on commit d34edd6

Please sign in to comment.