Overload @post_load decorator to retain the function type

This commit is contained in:
2023-03-10 13:04:00 +01:00
parent 32ffea3b4e
commit f75679f6b2
3 changed files with 72 additions and 1 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ class GenericInsightMixinTestCase(TestCase):
mock_super.return_value = MagicMock(__init_subclass__=mock_super_meth)
# Should be `None` by default:
self.assertIsNone(_util.GenericInsightMixin._type_arg) # type: ignore[misc]
self.assertIsNone(
_util.GenericInsightMixin._type_arg # type: ignore[misc]
)
# If the mixin type argument was not specified (still generic),
# ensure that the attribute remains `None` on the subclass: