Skip to content

typing: get_type_hints can't handle stringified annotations with leading spaces #90710

@GBeauregard

Description

@GBeauregard
BPO 46552
Nosy @gvanrossum, @ericvsmith, @JelleZijlstra, @sobolevn, @Fidget-Spinner, @AlexWaygood, @GBeauregard

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2022-01-27.22:50:26.308>
created_at = <Date 2022-01-27.20:04:08.321>
labels = ['type-bug', '3.9', '3.10', '3.11', 'invalid', 'library']
title = "typing: get_type_hints can't handle stringified annotations with leading spaces"
updated_at = <Date 2022-01-27.22:50:26.307>
user = 'https://github.com/GBeauregard'

bugs.python.org fields:

activity = <Date 2022-01-27.22:50:26.307>
actor = 'gvanrossum'
assignee = 'none'
closed = True
closed_date = <Date 2022-01-27.22:50:26.308>
closer = 'gvanrossum'
components = ['Library (Lib)']
creation = <Date 2022-01-27.20:04:08.321>
creator = 'GBeauregard'
dependencies = []
files = []
hgrepos = []
issue_num = 46552
keywords = []
message_count = 5.0
messages = ['411914', '411915', '411920', '411925', '411931']
nosy_count = 7.0
nosy_names = ['gvanrossum', 'eric.smith', 'JelleZijlstra', 'sobolevn', 'kj', 'AlexWaygood', 'GBeauregard']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue46552'
versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions