Skip to content

Conversation

@dr-carlos
Copy link
Contributor

@dr-carlos dr-carlos commented Nov 6, 2025

All lines in the ForwardRef class (except _evaluate) should now be covered by tests, except

elif callable(owner):
globals = getattr(owner, "__globals__", None)

I couldn't think of a useful test for those lines that wouldn't involve using the undocumented ForwardRef constructor (as the owner is automatically applied by annotationlib.get_annotations()).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant