Commit bc6666b
committed
pyproject.toml(chore[mypy]): Exclude frozen_dataclass_sealable test files from type checking
why: The frozen_dataclass_sealable decorator adds attributes and methods dynamically at runtime,
which mypy cannot properly analyze in test contexts, resulting in false positive errors.
what:
- Added mypy override to ignore type errors in tests._internal.test_frozen_dataclass_sealable
- Added mypy override to ignore type errors in tests.examples._internal.frozen_dataclass_sealable.test_basic
- Preserves strict typing for the implementation code while allowing tests to use dynamic features
refs: This addresses the mypy test failures while maintaining type safety for the implementation1 parent a38310f commit bc6666b
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
| |||
0 commit comments