Commit d0fff0e
Make
Summary:
If the `Union` contains a non-class type, `issubclass` would fail, this
adds a check for that case
](https://our.intern.facebook.com/intern/diff/17505206/)
Pull Request resolved: pytorch#26312
Pulled By: driazati
Differential Revision: D17505206
fbshipit-source-id: 1331e412f938e2f08ecb079972147f11e3ec77cdis_optional check more robust (pytorch#26312)1 parent 5cc3534 commit d0fff0e
2 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
3525 | 3525 | | |
3526 | 3526 | | |
3527 | 3527 | | |
| 3528 | + | |
| 3529 | + | |
| 3530 | + | |
| 3531 | + | |
3528 | 3532 | | |
3529 | 3533 | | |
3530 | 3534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
510 | 517 | | |
511 | 518 | | |
512 | 519 | | |
513 | 520 | | |
514 | 521 | | |
515 | | - | |
516 | | - | |
| 522 | + | |
| 523 | + | |
517 | 524 | | |
518 | 525 | | |
519 | 526 | | |
| |||
0 commit comments