Skip to content

Commit

Permalink
Add type hint for EnvironmentProtectionRuleReviewer.reviewer.
Browse files Browse the repository at this point in the history
  • Loading branch information
alson committed Jun 5, 2023
1 parent 2b5398e commit a6eb2b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion github/EnvironmentProtectionRuleReviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
# #
################################################################################

from __future__ import annotations

import github.GithubObject
import github.NamedUser
import github.Team
Expand All @@ -38,7 +40,7 @@ def type(self) -> str:
return self._type.value

@property
def reviewer(self):
def reviewer(self) -> github.NamedUser.NamedUser | github.Team.Team:
return self._reviewer.value

def _initAttributes(self):
Expand Down

0 comments on commit a6eb2b0

Please sign in to comment.