mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-16 02:51:28 +08:00
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.
This commit is contained in:
1 parent
8a326dc9ec
commit
5435ed76ef
1 file changed
+1
-1
@@ -16,7 +16,7 @@ __all__ = [
|
||||
"parse_config_h",
|
||||
]
|
||||
|
||||
def get_config_var(name: str) -> str | None: ...
|
||||
def get_config_var(name: str) -> Any: ...
|
||||
@overload
|
||||
def get_config_vars() -> dict[str, Any]: ...
|
||||
@overload
|
||||
|
||||
Reference in new issue
Block a user