Skip to content

Commit 53429fe

Browse files
committed
Fix type hints.
1 parent 5a38795 commit 53429fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

repo_helper/configuration/python_versions_.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ class requires_python(ConfigVar): # noqa
7777

7878
@classmethod
7979
def validate(cls, raw_config_vars: Optional[RawConfigVarsType] = None) -> Any:
80-
if cls.__name__ in raw_config_vars:
80+
if raw_config_vars is None:
81+
return None
82+
elif cls.__name__ in raw_config_vars:
8183
return super().validate(raw_config_vars)
8284
else:
8385
return None

0 commit comments

Comments
 (0)