Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enum] EnumMeta.__prepare__ needs to accept **kwds #86893

Closed
ethanfurman opened this issue Dec 24, 2020 · 6 comments
Closed

[Enum] EnumMeta.__prepare__ needs to accept **kwds #86893

ethanfurman opened this issue Dec 24, 2020 · 6 comments
Assignees
Labels
3.9 only security fixes 3.10 only security fixes type-bug An unexpected behavior, bug, or error

Comments

@ethanfurman
Copy link
Member

BPO 42727
Nosy @gpshead, @ethanfurman, @miss-islington, @desmondcheongzx
PRs
  • bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds #23917
  • [3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). #23926
  • bpo-42727: [Enum] use super() and include **kwds #23927
  • [3.9] bpo-42727: [Enum] use super() and include **kwds (GH-23927) #23931
  • bpo-42727: Fix the NEWS entry .rst syntax to fix CI #23932
  • [3.9] bpo-42727: Fix the NEWS entry .rst (GH-23932) #23933
  • 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 = 'https://github.com/ethanfurman'
    closed_at = <Date 2021-02-01.20:11:04.497>
    created_at = <Date 2020-12-24.03:41:22.868>
    labels = ['type-bug', '3.9', '3.10']
    title = '[Enum] EnumMeta.__prepare__ needs to accept **kwds'
    updated_at = <Date 2021-02-01.20:11:04.497>
    user = 'https://github.com/ethanfurman'

    bugs.python.org fields:

    activity = <Date 2021-02-01.20:11:04.497>
    actor = 'ethan.furman'
    assignee = 'ethan.furman'
    closed = True
    closed_date = <Date 2021-02-01.20:11:04.497>
    closer = 'ethan.furman'
    components = []
    creation = <Date 2020-12-24.03:41:22.868>
    creator = 'ethan.furman'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42727
    keywords = ['patch']
    message_count = 6.0
    messages = ['383670', '383705', '383711', '383712', '383713', '383751']
    nosy_count = 4.0
    nosy_names = ['gregory.p.smith', 'ethan.furman', 'miss-islington', 'desmondcheongzx']
    pr_nums = ['23917', '23926', '23927', '23931', '23932', '23933']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42727'
    versions = ['Python 3.9', 'Python 3.10']

    @ethanfurman
    Copy link
    Member Author

    **kwds are necessary to support __init_subclass__, but __prepare__ currently does not accept them.

    @ethanfurman ethanfurman added 3.9 only security fixes 3.10 only security fixes labels Dec 24, 2020
    @ethanfurman ethanfurman self-assigned this Dec 24, 2020
    @ethanfurman ethanfurman added type-bug An unexpected behavior, bug, or error 3.9 only security fixes 3.10 only security fixes labels Dec 24, 2020
    @ethanfurman ethanfurman self-assigned this Dec 24, 2020
    @ethanfurman ethanfurman added the type-bug An unexpected behavior, bug, or error label Dec 24, 2020
    @ethanfurman
    Copy link
    Member Author

    New changeset f7dca9b by Ethan Furman in branch '3.9':
    [3.9] bpo-42727: [Enum] EnumMeta.__prepare__ now accepts **kwds (GH-23917). (GH-23926)
    f7dca9b

    @ethanfurman
    Copy link
    Member Author

    New changeset 786d97a by Ethan Furman in branch 'master':
    bpo-42727: [Enum] use super() and include **kwds (GH-23927)
    786d97a

    @gpshead
    Copy link
    Member

    gpshead commented Dec 25, 2020

    New changeset 8badade by Gregory P. Smith in branch 'master':
    bpo-42727: Fix the NEWS entry .rst (GH-23932)
    8badade

    @miss-islington
    Copy link
    Contributor

    New changeset 5a6b5d8 by Miss Islington (bot) in branch '3.9':
    bpo-42727: Fix the NEWS entry .rst (GH-23932)
    5a6b5d8

    @miss-islington
    Copy link
    Contributor

    New changeset fbffda2 by Miss Islington (bot) in branch '3.9':
    bpo-42727: [Enum] use super() and include **kwds (GH-23927)
    fbffda2

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.9 only security fixes 3.10 only security fixes type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants