Skip to content

Commit

Permalink
Fix type of NamedUser.name (#2050)
Browse files Browse the repository at this point in the history
The `name` attribute of a `NamedUser` is `None` if the user did not set
a name in their GitHub profile, but this was not reflected in the type.
  • Loading branch information
olmokramer committed Oct 11, 2021
1 parent 7f458ad commit d2d59f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/NamedUser.pyi
Expand Up @@ -92,7 +92,7 @@ class NamedUser(CompletableGithubObject):
@property
def login(self) -> str: ...
@property
def name(self) -> str: ...
def name(self) -> Optional[str]: ...
@property
def node_id(self) -> str: ...
@property
Expand Down

0 comments on commit d2d59f9

Please sign in to comment.