Skip to content

Commit

Permalink
Avoid using Any in function
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jan 8, 2025
1 parent 1c61d47 commit 72c4222
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setuptools/_static.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import wraps
from typing import Any, TypeVar
from typing import TypeVar

import packaging.specifiers

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


def is_static(value: Any) -> bool:
def is_static(value: object) -> bool:
"""
>>> is_static(a := Dict({'a': 1}))
True
Expand Down

0 comments on commit 72c4222

Please sign in to comment.