Skip to content

typing.evaluate_forward_ref is not fully covered #128661

Description

Activity

  1. self-assigned this
    on Jan 9, 2025
  2. sobolevn commented on Jan 9, 2025

    @sobolevn
    MemberAuthor

    Aaaand I found a bug!

    cpython/Lib/typing.py

    Lines 1021 to 1030 in a1284e9

    def evaluate_forward_ref(
    forward_ref,
    *,
    owner=None,
    globals=None,
    locals=None,
    type_params=None,
    format=annotationlib.Format.VALUE,
    _recursive_guard=frozenset(),
    ):

    type_params here is None, not _sentinel, so the deprecation warning is never shown.

  3. added 3 commits that reference this issue on Jan 9, 2025
  4. added a commit that references this issue on Jan 17, 2025
  5. added a commit that references this issue on Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

3.14bugs and security fixestestsTests in the Lib/test dirtopic-typing

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions