| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8b270b7 commit fd53ae1
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1172,6 +1172,7 @@ subject value: | |||
| 1172 | 1172 | * :class:`bytes` | |
| 1173 | 1173 | * :class:`dict` | |
| 1174 | 1174 | * :class:`float` | |
| 1175 | + * :class:`frozendict` | ||
| 1175 | 1176 | * :class:`frozenset` | |
| 1176 | 1177 | * :class:`int` | |
| 1177 | 1178 | * :class:`list` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2852,6 +2852,15 @@ def test_patma_266(self): | |||
| 2852 | 2852 | self.assertEqual(x, 0) | |
| 2853 | 2853 | self.assertEqual(y, 1) | |
| 2854 | 2854 | ||
| 2855 | + def test_patma_frozendict_class_self(self): | ||
| 2856 | + x = frozendict() | ||
| 2857 | + match x: | ||
| 2858 | + case frozendict(z): | ||
| 2859 | + y = 0 | ||
| 2860 | + self.assertEqual(x, frozendict()) | ||
| 2861 | + self.assertEqual(y, 0) | ||
| 2862 | + self.assertIs(z, x) | ||
| 2863 | + | ||
| 2855 | 2864 | def test_patma_runtime_checkable_protocol(self): | |
| 2856 | 2865 | # Runtime-checkable protocol | |
| 2857 | 2866 | from typing import Protocol, runtime_checkable | |
| Back | FazBrowse Home | New Git URL |
0 commit comments