[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: -25772 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-07-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal nosy_count: 8.0 -> 9.0 pull_requests: +25772 pull_request: https://github.com/python/cpython/pull/27228 ___ Python tracker ___

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: @Łukasz thanks for your merging spree! I'm actually not sure this should go into 3.9. Seems potentially dangerous that people upgrading from an earlier 3.9 patch release will now see new names injected into their namespace if they do `from typing import *`.

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: Fix merged to main (3.11), 3.10, and 3.9. Not applicable to older Pythons as they are security fixes only. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.6 __

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 00726e51ade10c7e3535811eb700418725244230 by Miss Islington (bot) in branch '3.9': bpo-38352: Add to typing.__all__ (GH-25821) (#25885) https://github.com/python/cpython/commit/00726e51ade10c7e3535811eb700418725244230 -- _

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e1bcc88a502aa0239b6bcc4da3fe024307fd27f4 by Miss Islington (bot) in branch '3.10': bpo-38352: Add to typing.__all__ (GH-25821) (#25884) https://github.com/python/cpython/commit/e1bcc88a502aa0239b6bcc4da3fe024307fd27f4 -- nosy: +lukasz.lan

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +24559 pull_request: https://github.com/python/cpython/pull/25885 ___ Python tracker ___ __

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +24558 pull_request: https://github.com/python/cpython/pull/25884 ___ Python tracker _

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-02 Thread Jelle Zijlstra
Change by Jelle Zijlstra : -- keywords: +patch pull_requests: +24508 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25821 ___ Python tracker ___ _

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2021-05-02 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: It turns out that IO, TextIO, BinaryIO, Match, and Pattern aren't in typing.__all__. As Walter points out above, there's no clear reason for this. I am submitting a PR to add them to __all__. -- nosy: +Jelle Zijlstra

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2020-12-04 Thread Guido van Rossum
Guido van Rossum added the comment: Wait, is the OP maybe that there’s a difference between typeshed an the stdlib typing.py? -- ___ Python tracker ___ ___

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2020-12-04 Thread Walter Dörwald
Walter Dörwald added the comment: Shadowing the real modules `re` and `io` by from typing import * would indeed be bad, but that argument IMHO doesn't hold for the types `IO`, `TextIO` and `BinaryIO`, yet they are not listed in `typing.__all__`. Is there a reason for that? And if not, cou

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2019-10-04 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: > So, my request is: In the sections for the IO/TextIO/BinaryIO and > Pattern/Match classes, include text warning the user that these types are not > imported when you do `from typing import *`. I don't think this should really be a warning, probably just a

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2019-10-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue38352] In typing docs, note explicit import needed for IO and Pattern/Match

2019-10-02 Thread Karl Kornel
New submission from Karl Kornel : Hello! In https://github.com/python/cpython/blob/master/Lib/typing.py#L115-L117, there is a note about the io and re classes not being included in typing.__all__. I am a relatively new user of typing, and I did `from typing import *` in my code. I ran the