Commit 6d3eb8a
committed
fix: Resolve circular import in types.py by using TYPE_CHECKING
The ValidatorProtocol was referencing ValidationResult which was moved to
validator.py, causing a circular import. Fixed by importing ValidationResult
only during type checking using TYPE_CHECKING guard and __future__ annotations.1 parent 775fa2f commit 6d3eb8a
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
0 commit comments