You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reverting the type hinting stuff from the upstream config codebase actually solves these....
(during docs build when we hit :inherited-members: we pull in the upstream Configitem refs that doesn't intersphinx resolve. Pretty annoying, especially we get zero benefit, only the annoyance here from all these typing stuff)
diff --git a/astropy/config/configuration.py b/astropy/config/configuration.py
index b7de74d668..dca4a87ec6 100644
--- a/astropy/config/configuration.py+++ b/astropy/config/configuration.py@@ -90,7 +90,7 @@ class ConfigNamespace(metaclass=_ConfigNamespaceMeta):
"""
A namespace of configuration items. Each subpackage with
configuration items should define a subclass of this class,
- containing `ConfigItem` instances as members.+ containing `~astropy.config.ConfigItem` instances as members.
For example::
@@ -121,13 +121,13 @@ class ConfigNamespace(metaclass=_ConfigNamespaceMeta):
keys = __iter__
"""Iterate over configuration item names."""
- def values(self) -> Generator[ConfigItem, None, None]:+ def values(self):
"""Iterate over configuration item values."""
for val in self.__class__.__dict__.values():
if isinstance(val, ConfigItem):
yield val
- def items(self) -> Generator[tuple[str, ConfigItem], None, None]:+ def items(self):
"""Iterate over configuration item ``(name, value)`` pairs."""
for key, val in self.__class__.__dict__.items():
if isinstance(val, ConfigItem):
Activity
bsipocz commentedon May 28, 2025
The relevant warnings:
bsipocz commentedon May 28, 2025
Reverting the type hinting stuff from the upstream config codebase actually solves these....
(during docs build when we hit
:inherited-members:we pull in the upstream Configitem refs that doesn't intersphinx resolve. Pretty annoying, especially we get zero benefit, only the annoyance here from all these typing stuff)