Commit 4c68c23
Include GenericMeta unconditionally
Summary:
PEP 560 removed `typing.GenericMeta`, so it was conditionally removed from typeshed by python/typeshed#3933 .
However, we rely on that class to be the metaclass of `Generic`, all generic classes, and all protocols. This meant that once typeshed was updated, lots of attributes disappeared.
This diff fixes that by special casing it back in. This means we'll erroneously allow users to refer to it, but that's fine for now.
Reviewed By: grievejia
Differential Revision: D21854250
fbshipit-source-id: 294740a866800b70939f425e8919a3c275b362851 parent c98f191 commit 4c68c23
2 files changed
+33
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
735 | 735 | | |
736 | 736 | | |
737 | 737 | | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
738 | 768 | | |
739 | 769 | | |
740 | 770 | | |
| |||
750 | 780 | | |
751 | 781 | | |
752 | 782 | | |
| 783 | + | |
753 | 784 | | |
754 | 785 | | |
755 | 786 | | |
| |||
818 | 849 | | |
819 | 850 | | |
820 | 851 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | 852 | | |
854 | 853 | | |
855 | 854 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
946 | | - | |
| 946 | + | |
| 947 | + | |
947 | 948 | | |
948 | 949 | | |
949 | 950 | | |
| |||
0 commit comments