Commit 2e311fd
Fix pyrefly 1.2.0 type-check failure (#1811)
The backend Actions job failed after upgrading Pyrefly to 1.2.0, which
rejected `NewType` identifiers as keys in the foreign-key validation
lookup.
- **Typing:** Update the lookup annotation to accept runtime `NewType`
keys without changing behavior.
```python
check_lookup: dict[Any, CheckCallableT] = {
StageId: check_stage_belongs_to_tournament,
TeamId: check_team_belongs_to_tournament,
}
```
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: evroon <11857441+evroon@users.noreply.github.com>1 parent c242bb2 commit 2e311fd
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments