Commit d010d9b
committed
observability: replace frozenset lambdas with named factory
Two github-code-quality findings on ``detached_subgraphs`` /
``detached_fan_outs`` defaults addressed via the bot's named-factory
suggestion. Previous rounds kept the lambdas with an explanatory
comment because ``default_factory=frozenset`` produced
``frozenset[Unknown]`` under pyright strict mode; the named factory
``_empty_str_frozenset() -> frozenset[str]`` carries the explicit
return annotation, satisfying both constraints (no lambda; pyright
preserves the typed empty frozenset). Removed the explanatory
comment along with the lambdas.1 parent aa17f4b commit d010d9b
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| |||
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
| 161 | + | |
| 162 | + | |
158 | 163 | | |
159 | 164 | | |
160 | 165 | | |
| |||
0 commit comments