fix error attempting to baseline diagnostics from the new string.templatelib module when targeting python 3.14#1801
Merged
Conversation
56fba39 to
bb29061
Compare
This comment has been minimized.
This comment has been minimized.
bb29061 to
3f8fbed
Compare
3f8fbed to
62ca523
Compare
This comment has been minimized.
This comment has been minimized.
62ca523 to
c96c28f
Compare
…platelib` module when targeting python 3.14
string.templatelib module being treated as part of the user's source codestring.templatelib module when targeting python 3.14
c96c28f to
1b735ef
Compare
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: core (https://github.com/home-assistant/core)
-
- <--- Last few GCs --->
-
- [5547:0x3a7f3030] 3255879 ms: Scavenge 3550.5 (4132.5) -> 3543.3 (4132.8) MB, 18.81 / 0.00 ms (average mu = 0.600, current mu = 0.000) allocation failure;
- [5547:0x3a7f3030] 3255929 ms: Scavenge 3550.9 (4132.8) -> 3543.6 (4132.8) MB, 10.48 / 0.00 ms (average mu = 0.600, current mu = 0.000) allocation failure;
- [5547:0x3a7f3030] 3255966 ms: Scavenge 3551.8 (4133.3) -> 3544.4 (4149.5) MB, 12.86 / 0.00 ms (average mu = 0.600, current mu = 0.000) allocation failure;
-
-
- <--- JS stacktrace --->
-
- FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
- ----- Native stack trace -----
-
- 1: 0xb78db3 node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
- 2: 0xee8300 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
- 3: 0xee85e7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
- 4: 0x10fb205 [node]
- 5: 0x1113088 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
- 6: 0x10e91f1 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
- 7: 0x10ea385 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
- 8: 0x10c78d6 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
- 9: 0x15247d6 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
- 10: 0x7f66d9e9a476
- Aborted (core dumped)
+ .../projects/core/homeassistant/__main__.py
+ .../projects/core/homeassistant/__main__.py:30:13 - warning: Implicit string concatenation not allowed (reportImplicitStringConcatenation)
+ .../projects/core/homeassistant/__main__.py:60:17 - warning: Implicit string concatenation not allowed (reportImplicitStringConcatenation)
+ .../projects/core/homeassistant/__main__.py:86:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:87:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:94:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:99:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:102:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:107:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:112:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:120:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:123:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:129:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:135:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:138:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:141:5 - warning: Result of call expression is of type "Action" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:157:13 - warning: Result of call expression is of type "int | Any" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:163:9 - warning: Result of call expression is of type "int | Any" and is not used; assign to variable "_" if this is intentional (reportUnusedCallResult)
+ .../projects/core/homeassistant/__main__.py:172:12 - warning: Type of "ignore_os_check" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:175:8 - warning: Type of "script" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:178:28 - warning: Type of "script" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:178:28 - warning: Argument type is Any
+ Argument corresponds to parameter "args" in function "run" (reportAny)
+ .../projects/core/homeassistant/__main__.py:180:60 - warning: Type of "config" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:180:60 - warning: Argument type is Any
+ Argument corresponds to parameter "paths" in function "join" (reportAny)
+ .../projects/core/homeassistant/__main__.py:198:21 - warning: Type of "verbose" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:198:21 - warning: Argument type is Any
+ Argument corresponds to parameter "verbose" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:199:29 - warning: Type of "log_rotate_days" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:199:29 - warning: Argument type is Any
+ Argument corresponds to parameter "log_rotate_days" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:200:22 - warning: Type of "log_file" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:200:22 - warning: Argument type is Any
+ Argument corresponds to parameter "log_file" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:201:26 - warning: Type of "log_no_color" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:201:26 - warning: Argument type is Any
+ Argument corresponds to parameter "log_no_color" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:202:22 - warning: Type of "skip_pip" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:202:22 - warning: Argument type is Any
+ Argument corresponds to parameter "skip_pip" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:203:31 - warning: Type of "skip_pip_packages" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:203:31 - warning: Argument type is Any
+ Argument corresponds to parameter "skip_pip_packages" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:204:27 - warning: Type of "recovery_mode" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:204:27 - warning: Argument type is Any
+ Argument corresponds to parameter "recovery_mode" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:205:19 - warning: Type of "debug" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:205:19 - warning: Argument type is Any
+ Argument corresponds to parameter "debug" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/__main__.py:206:21 - warning: Type of "open_ui" is Any (reportAny)
+ .../projects/core/homeassistant/__main__.py:206:21 - warning: Argument type is Any
+ Argument corresponds to parameter "open_ui" in function "__init__" (reportAny)
+ .../projects/core/homeassistant/auth/__init__.py
+ .../projects/core/homeassistant/auth/__init__.py: error: Cycle detected in import chain
+ .../projects/core/homeassistant/auth/__init__.py
+ .../projects/core/homeassistant/core.py
+ .../projects/core/homeassistant/exceptions.py
+ .../projects/core/homeassistant/helpers/translation.py
+ .../projects/core/homeassistant/loader.py
+ .../projects/core/homeassistant/config_entries.py
+ .../projects/core/homeassistant/helpers/device_registry.py
+ .../projects/core/homeassistant/helpers/entity_registry.py
+ .../projects/core/homeassistant/helpers/event.py
+ .../projects/core/homeassistant/helpers/template/__init__.py
+ .../projects/core/homeassistant/helpers/template/helpers.py
+ .../projects/core/homeassistant/helpers/area_registry.py
+ .../projects/core/homeassistant/components/sensor/__init__.py
+ .../projects/core/homeassistant/helpers/entity.py
+ /tmp/mypy_primer/projects/core/homeassistant/core_config.py (reportImportCycles)
+ .../projects/core/homeassistant/auth/__init__.py: error: Cycle detected in import chain
+ .../projects/core/homeassistant/auth/__init__.py
+ .../projects/core/homeassistant/core.py
+ .../projects/core/homeassistant/exceptions.py
+ .../projects/core/homeassistant/helpers/translation.py
+ .../projects/core/homeassistant/loader.py
+ .../projects/core/homeassistant/config_entries.py
... (truncated 535498 lines) ...
|
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.
fixes #1677