- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | serhiy.storchaka |
|---|---|
| Recipients | BTaskaya, emma_smith, gvanrossum, lukasz.langa, serhiy.storchaka, yan12125 |
| Date | 2020-04-13.09:12:29 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1586769149.87.0.335309517977.issue39481@roundup.psfhosted.org> |
| In-reply-to |
| Content |
|---|
I tested the following example: import ipaddress, mmap x: ipaddress.IPv4Network[int] y: mmap.mmap[int] MyPy produces errors: t.py:4: error: "IPv4Network" expects no type arguments, but 1 given t.py:5: error: "mmap" expects no type arguments, but 1 given This is because mmap and IPv4Network are not generic types in typeshed. _BaseNetwork and _mmap are generic types, but IPv4Network and mmap are normal classes. The former are implementation detail of typeshed. _mmap does not exist in the stdlib, and _BaseNetwork in typeshed and the stdlib are different things. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2020-04-13 09:12:29 | serhiy.storchaka | set | recipients: + serhiy.storchaka, gvanrossum, lukasz.langa, yan12125, emma_smith, BTaskaya |
| 2020-04-13 09:12:29 | serhiy.storchaka | set | messageid: <1586769149.87.0.335309517977.issue39481@roundup.psfhosted.org> |
| 2020-04-13 09:12:29 | serhiy.storchaka | link | issue39481 messages |
| 2020-04-13 09:12:29 | serhiy.storchaka | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
