Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finalise missing details from #4698 #4793

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions newsfragments/4698.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Implemented ``Dynamic`` field for core metadata (as introduced in PEP 643).
The existing implementation is currently experimental and the exact approach
may change in future releases.
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
Loading