Skip to content

Add note to typing.Union that it is recommended to use | instead #90278

Description

@sobolevn
BPO 46120
Nosy @gpshead, @asvetlov, @ambv, @miss-islington, @sobolevn, @Fidget-Spinner
PRs
  • bpo-46120: State that | is preferred over Union #30222
  • [3.10] bpo-46120: State that | is preferred over Union (GH-30222) #30250
  • 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 2021-12-29.11:57:14.805>
    created_at = <Date 2021-12-18.08:20:39.434>
    labels = ['3.11', 'type-bug', '3.10', 'docs']
    title = 'Add note to `typing.Union` that it is recommended to use `|` instead'
    updated_at = <Date 2021-12-29.21:33:41.569>
    user = 'https://github.com/sobolevn'

    bugs.python.org fields:

    activity = <Date 2021-12-29.21:33:41.569>
    actor = 'sobolevn'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-12-29.11:57:14.805>
    closer = 'AlexWaygood'
    components = ['Documentation']
    creation = <Date 2021-12-18.08:20:39.434>
    creator = 'sobolevn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46120
    keywords = ['patch']
    message_count = 5.0
    messages = ['408836', '409158', '409302', '409316', '409328']
    nosy_count = 7.0
    nosy_names = ['gregory.p.smith', 'asvetlov', 'docs@python', 'lukasz.langa', 'miss-islington', 'sobolevn', 'kj']
    pr_nums = ['30222', '30250']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46120'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixesdocsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

      Fields

      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