Commit 3acdf54
Remove some unnecessary checks for None (#1464)
* Less paranoia in generating constraints for TypeVarType
self.actual is declared as having type Type, and (as of commit
b602ecc) cannot be None.
* Less paranoia in TypeInfo.is_generic
self.variables is declared as having type List[TypeVarDef], and can
never be None.1 parent d6a3453 commit 3acdf54
2 files changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 166 | + | |
170 | 167 | | |
171 | 168 | | |
172 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1776 | 1776 | | |
1777 | 1777 | | |
1778 | 1778 | | |
1779 | | - | |
| 1779 | + | |
1780 | 1780 | | |
1781 | 1781 | | |
1782 | 1782 | | |
| |||
0 commit comments