Skip to content

Add an explicit test for get_type_hints for a class field with None default #90503

@sobolevn

Description

@sobolevn
BPO 46345
Nosy @gvanrossum, @corona10, @miss-islington, @sobolevn, @Fidget-Spinner
PRs
  • bpo-46345: add a test case for implicit Optional class attribute #30535
  • [3.10] bpo-46345: Add a test case for implicit Optional class attribute (GH-30535) #30567
  • [3.9] bpo-46345: Add a test case for implicit Optional class attribute (GH-30535) #30568
  • 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-14.12:09:37.625>
    created_at = <Date 2022-01-11.15:12:50.515>
    labels = ['type-bug', 'tests', '3.9', '3.10', '3.11']
    title = 'Add an explicit test for `get_type_hints` for a class field with `None` default'
    updated_at = <Date 2022-01-14.12:09:37.625>
    user = 'https://github.com/sobolevn'

    bugs.python.org fields:

    activity = <Date 2022-01-14.12:09:37.625>
    actor = 'sobolevn'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-14.12:09:37.625>
    closer = 'sobolevn'
    components = ['Tests']
    creation = <Date 2022-01-11.15:12:50.515>
    creator = 'sobolevn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46345
    keywords = ['patch']
    message_count = 9.0
    messages = ['410307', '410308', '410443', '410449', '410450', '410457', '410462', '410463', '410464']
    nosy_count = 5.0
    nosy_names = ['gvanrossum', 'corona10', 'miss-islington', 'sobolevn', 'kj']
    pr_nums = ['30535', '30567', '30568']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46345'
    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 lifetestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions