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

The documentation mentions asyncio.Server. It does not exist. #91111

Closed
vringar mannequin opened this issue Mar 8, 2022 · 4 comments
Closed

The documentation mentions asyncio.Server. It does not exist. #91111

vringar mannequin opened this issue Mar 8, 2022 · 4 comments
Labels
3.9 only security fixes 3.10 only security fixes 3.11 only security fixes topic-asyncio

Comments

@vringar
Copy link
Mannequin

vringar mannequin commented Mar 8, 2022

BPO 46955
Nosy @asvetlov, @1st1, @miss-islington, @vringar
PRs
  • bpo-46955: Expose asyncio.base_events.Server as asyncio.Server #31760
  • [3.9] bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760) #31773
  • [3.10] bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760) #31774
  • 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-03-08.21:46:14.619>
    created_at = <Date 2022-03-08.10:01:14.630>
    labels = ['3.11', '3.9', '3.10', 'expert-asyncio']
    title = 'The documentation mentions asyncio.Server. It does not exist.'
    updated_at = <Date 2022-03-08.21:46:14.619>
    user = 'https://github.com/vringar'

    bugs.python.org fields:

    activity = <Date 2022-03-08.21:46:14.619>
    actor = 'asvetlov'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-03-08.21:46:14.619>
    closer = 'asvetlov'
    components = ['asyncio']
    creation = <Date 2022-03-08.10:01:14.630>
    creator = 'vringar'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46955
    keywords = ['patch']
    message_count = 4.0
    messages = ['414741', '414775', '414776', '414777']
    nosy_count = 4.0
    nosy_names = ['asvetlov', 'yselivanov', 'miss-islington', 'vringar']
    pr_nums = ['31760', '31773', '31774']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue46955'
    versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    @vringar
    Copy link
    Mannequin Author

    vringar mannequin commented Mar 8, 2022

    The asyncio documentation claims that there is a class asyncio.Server.

    However when looking in the sources I can only find asyncio.base_events.Server which does not get exposed via __all__ and can not be imported as asyncio.Server.
    I had to name the type as I wanted to use this class as a type annotation for mypy.

    @vringar vringar mannequin added 3.10 only security fixes topic-asyncio labels Mar 8, 2022
    @asvetlov asvetlov added 3.9 only security fixes 3.11 only security fixes labels Mar 8, 2022
    @asvetlov
    Copy link
    Contributor

    asvetlov commented Mar 8, 2022

    New changeset da80d6b by Stefan Zabka in branch 'main':
    bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
    da80d6b

    @miss-islington
    Copy link
    Contributor

    New changeset 20e88f7 by Miss Islington (bot) in branch '3.9':
    bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
    20e88f7

    @miss-islington
    Copy link
    Contributor

    New changeset 8de434b by Miss Islington (bot) in branch '3.10':
    bpo-46955: Expose asyncio.base_events.Server as asyncio.Server (GH-31760)
    8de434b

    @asvetlov asvetlov closed this as completed Mar 8, 2022
    @asvetlov asvetlov closed this as completed Mar 8, 2022
    @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 3.11 only security fixes topic-asyncio
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants