Skip to content

fix error attempting to baseline diagnostics from the new string.templatelib module when targeting python 3.14#1801

Merged
DetachHead merged 2 commits into
mainfrom
fix-templatelib-baseline-error
May 16, 2026
Merged

fix error attempting to baseline diagnostics from the new string.templatelib module when targeting python 3.14#1801
DetachHead merged 2 commits into
mainfrom
fix-templatelib-baseline-error

Conversation

@DetachHead
Copy link
Copy Markdown
Owner

fixes #1677

@DetachHead DetachHead force-pushed the fix-templatelib-baseline-error branch from 56fba39 to bb29061 Compare May 15, 2026 14:50
@github-actions

This comment has been minimized.

@DetachHead DetachHead force-pushed the fix-templatelib-baseline-error branch from bb29061 to 3f8fbed Compare May 16, 2026 10:57
@DetachHead DetachHead force-pushed the fix-templatelib-baseline-error branch from 3f8fbed to 62ca523 Compare May 16, 2026 11:58
@github-actions

This comment has been minimized.

@DetachHead DetachHead force-pushed the fix-templatelib-baseline-error branch from 62ca523 to c96c28f Compare May 16, 2026 13:33
@DetachHead DetachHead changed the title fix string.templatelib module being treated as part of the user's source code fix error attempting to baseline diagnostics from the new string.templatelib module when targeting python 3.14 May 16, 2026
@DetachHead DetachHead force-pushed the fix-templatelib-baseline-error branch from c96c28f to 1b735ef Compare May 16, 2026 13:58
@github-actions
Copy link
Copy Markdown
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) ...

@DetachHead DetachHead merged commit 009e953 into main May 16, 2026
17 checks passed
@DetachHead DetachHead deleted the fix-templatelib-baseline-error branch May 16, 2026 15:14
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.

could not baseline diagnostics on Python 3.14 docker container

1 participant