Skip to content

Commit

Permalink
Fix type hints.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 17, 2021
1 parent 5a38795 commit 53429fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion repo_helper/configuration/python_versions_.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class requires_python(ConfigVar): # noqa

@classmethod
def validate(cls, raw_config_vars: Optional[RawConfigVarsType] = None) -> Any:
if cls.__name__ in raw_config_vars:
if raw_config_vars is None:
return None
elif cls.__name__ in raw_config_vars:
return super().validate(raw_config_vars)
else:
return None
Expand Down

0 comments on commit 53429fe

Please sign in to comment.