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

Remove use of LiteralString in builtins #13093

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

ilevkivskyi
Copy link
Member

Fixes #13091

@ilevkivskyi ilevkivskyi requested a review from JukkaL July 8, 2022 12:14
@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2022

Diff from mypy_primer, showing the effect of this PR on open source code:

porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/editorconfig.py:152: error: Argument 1 to "map" has incompatible type "Callable[[AnyStr], AnyStr]"; expected "Callable[[str], AnyStr]"  [arg-type]
- porcupine/plugins/pluginmanager.py:133: error: Argument 1 to "map" has incompatible type "Callable[[AnyStr], AnyStr]"; expected "Callable[[str], AnyStr]"  [arg-type]

core (https://github.com/home-assistant/core)
- homeassistant/components/sonos/media.py:180: error: List item 0 has incompatible type "Optional[str]"; expected "None"  [list-item]

streamlit (https://github.com/streamlit/streamlit)
+ lib/tests/streamlit/legacy_caching/hashing_test.py:253:30: error: Unsupported operand types for + ("str" and "int")  [operator]
- lib/tests/streamlit/legacy_caching/hashing_test.py:253:24: error: No overload variant of "__add__" of "str" matches argument type "int"  [operator]
- lib/tests/streamlit/legacy_caching/hashing_test.py:253:24: note: Possible overload variants:
- lib/tests/streamlit/legacy_caching/hashing_test.py:253:24: note:     def __add__(self, str) -> str

aiohttp (https://github.com/aio-libs/aiohttp)
- aiohttp/multipart.py:95: error: Argument 1 to "map" has incompatible type "Callable[[AnyStr], AnyStr]"; expected "Callable[[str], AnyStr]"  [arg-type]

@JukkaL JukkaL merged commit ce891e3 into python:master Jul 8, 2022
@ilevkivskyi ilevkivskyi deleted the revert-literal-str branch July 8, 2022 13:43
hauntsaninja pushed a commit to hauntsaninja/mypy that referenced this pull request Jul 8, 2022
Fixes python#13091

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
@hauntsaninja hauntsaninja mentioned this pull request Jul 8, 2022
hauntsaninja added a commit that referenced this pull request Jul 8, 2022
Source commit:
python/typeshed@b145b32

This reapplies #13093. This will likely be the last sync that still has support for Python 3.6.
@hauntsaninja hauntsaninja mentioned this pull request Jul 27, 2022
ilevkivskyi added a commit to ilevkivskyi/mypy that referenced this pull request Jul 27, 2022
Fixes python#13091

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
hauntsaninja pushed a commit that referenced this pull request Jul 28, 2022
Source commit:
python/typeshed@5397d43

Remove use of LiteralString in builtins (#13093)
@AlexWaygood AlexWaygood mentioned this pull request Aug 11, 2022
Gobot1234 pushed a commit to Gobot1234/mypy that referenced this pull request Aug 12, 2022
Fixes python#13091

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
Gobot1234 pushed a commit to Gobot1234/mypy that referenced this pull request Aug 12, 2022
Source commit:
python/typeshed@b145b32

This reapplies python#13093. This will likely be the last sync that still has support for Python 3.6.
jhance pushed a commit that referenced this pull request Aug 17, 2022
Fixes #13091

Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
@hauntsaninja hauntsaninja mentioned this pull request Aug 20, 2022
@AlexWaygood AlexWaygood mentioned this pull request Sep 26, 2022
hauntsaninja added a commit to hauntsaninja/mypy that referenced this pull request Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revert LteralString support from vendored typeshed copy
2 participants