Skip to content

typing.get_type_hints() returns Optional[Any] if the default value of the argument is None #86454

@tk0miya

Description

@tk0miya
mannequin
BPO 42288
Nosy @gvanrossum, @ilevkivskyi, @tk0miya

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 2020-11-08.22:07:34.455>
created_at = <Date 2020-11-08.04:51:22.447>
labels = ['3.8', '3.9', '3.10', 'invalid', 'type-feature', 'library']
title = 'typing.get_type_hints() returns Optional[Any] if the default value of the argument is None'
updated_at = <Date 2020-11-10.13:27:37.736>
user = 'https://github.com/tk0miya'

bugs.python.org fields:

activity = <Date 2020-11-10.13:27:37.736>
actor = 'tkomiya'
assignee = 'none'
closed = True
closed_date = <Date 2020-11-08.22:07:34.455>
closer = 'gvanrossum'
components = ['Library (Lib)']
creation = <Date 2020-11-08.04:51:22.447>
creator = 'tkomiya'
dependencies = []
files = []
hgrepos = []
issue_num = 42288
keywords = []
message_count = 3.0
messages = ['380532', '380562', '380660']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'levkivskyi', 'tkomiya']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue42288'
versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions