Commit bf239de
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 1fe4a1a commit bf239de
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
| |||
0 commit comments