Skip to content

Commit 5435ed7

Browse files
authored
sysconfig.get_config_var should return Any (#8572)
This can return str, int, None... and maybe more. In the interest of being defensive, have it return Any.
1 parent 8a326dc commit 5435ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/sysconfig.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ __all__ = [
1616
"parse_config_h",
1717
]
1818

19-
def get_config_var(name: str) -> str | None: ...
19+
def get_config_var(name: str) -> Any: ...
2020
@overload
2121
def get_config_vars() -> dict[str, Any]: ...
2222
@overload

0 commit comments

Comments
 (0)