Skip to content

Commit 72c4222

Browse files
committed
Avoid using Any in function
1 parent 1c61d47 commit 72c4222

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools/_static.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from functools import wraps
2-
from typing import Any, TypeVar
2+
from typing import TypeVar
33

44
import packaging.specifiers
55

@@ -170,7 +170,7 @@ def attempt_conversion(value: T) -> T:
170170
return _CONVERSIONS.get(type(value), noop)(value) # type: ignore[call-overload]
171171

172172

173-
def is_static(value: Any) -> bool:
173+
def is_static(value: object) -> bool:
174174
"""
175175
>>> is_static(a := Dict({'a': 1}))
176176
True

0 commit comments

Comments
 (0)