[ty] Support walrus operator scope leaking from comprehensions#23167
Open
charliermarsh wants to merge 1 commit intocharlie/reffrom
Open
[ty] Support walrus operator scope leaking from comprehensions#23167charliermarsh wants to merge 1 commit intocharlie/reffrom
charliermarsh wants to merge 1 commit intocharlie/reffrom
Conversation
Typing conformance resultsNo changes detected ✅Current numbersThe percentage of diagnostics emitted that were expected errors held steady at 87.72%. The percentage of expected errors that received a diagnostic held steady at 82.85%. The number of fully passing files held steady at 74/132. |
|
937c67a to
852defe
Compare
|
| Lint rule | Added | Removed | Changed |
|---|---|---|---|
possibly-unresolved-reference |
1 | 21 | 0 |
unresolved-reference |
0 | 7 | 0 |
| Total | 1 | 28 | 0 |
Raw diff (29 changes)
core (https://github.com/home-assistant/core)
- homeassistant/components/bthome/event.py:115:27 warning[possibly-unresolved-reference] Name `address_event_class` used when possibly not defined
- homeassistant/components/bthome/event.py:115:51 warning[possibly-unresolved-reference] Name `address_event_class` used when possibly not defined
- homeassistant/components/ista_ecotrend/sensor.py:273:47 error[unresolved-reference] Name `statistics_sum` used when not defined
- homeassistant/components/xiaomi_ble/event.py:194:27 warning[possibly-unresolved-reference] Name `address_event_class` used when possibly not defined
- homeassistant/components/xiaomi_ble/event.py:194:51 warning[possibly-unresolved-reference] Name `address_event_class` used when possibly not defined
- homeassistant/helpers/integration_platform.py:137:9 warning[possibly-unresolved-reference] Name `future` used when possibly not defined
- homeassistant/components/habitica/util.py:124:17 warning[possibly-unresolved-reference] Name `stats` used when possibly not defined
- homeassistant/components/habitica/util.py:131:17 warning[possibly-unresolved-reference] Name `stats` used when possibly not defined
- homeassistant/components/igloohome/lock.py:39:27 warning[possibly-unresolved-reference] Name `bridge` used when possibly not defined
- homeassistant/components/mqtt/siren.py:343:28 warning[possibly-unresolved-reference] Name `data_attr` used when possibly not defined
- homeassistant/components/notion/binary_sensor.py:120:17 warning[possibly-unresolved-reference] Name `sensor` used when possibly not defined
- homeassistant/components/notion/binary_sensor.py:121:17 warning[possibly-unresolved-reference] Name `sensor` used when possibly not defined
- homeassistant/components/notion/sensor.py:56:17 warning[possibly-unresolved-reference] Name `sensor` used when possibly not defined
- homeassistant/components/notion/sensor.py:57:17 warning[possibly-unresolved-reference] Name `sensor` used when possibly not defined
- homeassistant/components/recorder/history/__init__.py:911:53 error[unresolved-reference] Name `prev_state` used when not defined
- homeassistant/components/recorder/history/__init__.py:927:49 error[unresolved-reference] Name `prev_state` used when not defined
- homeassistant/components/shelly/config_flow.py:643:13 warning[possibly-unresolved-reference] Name `mac` used when possibly not defined
- homeassistant/components/tplink/entity.py:434:29 warning[possibly-unresolved-reference] Name `desc` used when possibly not defined
- homeassistant/components/xiaomi_miio/sensor.py:883:19 warning[possibly-unresolved-reference] Name `value` used when possibly not defined
- homeassistant/helpers/translation.py:82:20 warning[possibly-unresolved-reference] Name `category_strings` used when possibly not defined
mkosi (https://github.com/systemd/mkosi)
- mkosi/__init__.py:5146:80 error[unresolved-reference] Name `c` used when not defined
- mkosi/__init__.py:5151:79 error[unresolved-reference] Name `c` used when not defined
- mkosi/config.py:4757:41 error[unresolved-reference] Name `missing` used when not defined
openlibrary (https://github.com/internetarchive/openlibrary)
- openlibrary/coverstore/code.py:533:13 warning[possibly-unresolved-reference] Name `cover` used when possibly not defined
rotki (https://github.com/rotki/rotki)
- rotkehlchen/chain/evm/decoding/curve/decoder.py:401:17 warning[possibly-unresolved-reference] Name `withdrawn_asset` used when possibly not defined
sympy (https://github.com/sympy/sympy)
- sympy/simplify/_cse_diff.py:152:21 warning[possibly-unresolved-reference] Name `diff_value` used when possibly not defined
- sympy/simplify/_cse_diff.py:169:46 warning[possibly-unresolved-reference] Name `diff_value` used when possibly not defined
xarray (https://github.com/pydata/xarray)
- xarray/core/extension_array.py:154:16 error[unresolved-reference] Name `ea_type` used when not defined
+ xarray/core/extension_array.py:154:16 warning[possibly-unresolved-reference] Name `ea_type` used when possibly not defineddb8acea to
ddd4764
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
b4f2194 to
956664d
Compare
956664d to
f7040b1
Compare
Memory usage reportMemory usage unchanged ✅ |
f7040b1 to
0106cd7
Compare
0106cd7 to
6e6605d
Compare
Member
Author
|
I pulled some of the enabling refactors into #23394 to make this PR smaller / more focused on walrus. |
6e6605d to
f7fb74a
Compare
f63f6bb to
371d9fc
Compare
f7fb74a to
84bbbcd
Compare
371d9fc to
2e2938c
Compare
84bbbcd to
372d6c7
Compare
2e2938c to
9259e3d
Compare
Lazy Avoid clone
372d6c7 to
1ba1351
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes astral-sh/ty#162.