Skip to content

Commit

Permalink
fix type hint to be consistent with super class
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeyier committed Dec 22, 2023
1 parent a209a57 commit 086ed72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdoc/doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ def __init__(
docstring: str,
annotation: type | empty = empty,
default_value: Any | empty = empty,
source: str | empty = empty,
source: str = "",
):
"""
Construct a variable doc object.
Expand All @@ -1066,7 +1066,7 @@ def __init__(
self.docstring = inspect.cleandoc(docstring)
self.annotation = annotation
self.default_value = default_value
if source is not empty:
if source:
self.source = source

@cache
Expand Down

0 comments on commit 086ed72

Please sign in to comment.