MCPcopy Create free account
hub / github.com/cloudpipe/cloudpickle / ConcreteClass

Class ConcreteClass

tests/cloudpickle_test.py:1279–1294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1277 """A property"""
1278
1279 class ConcreteClass(AbstractClass):
1280 def some_method(self):
1281 return "it works!"
1282
1283 @classmethod
1284 def some_classmethod(cls):
1285 assert cls == ConcreteClass
1286 return "it works!"
1287
1288 @staticmethod
1289 def some_staticmethod():
1290 return "it works!"
1291
1292 @property
1293 def some_property(self):
1294 return "it works!"
1295
1296 # This abstract class is locally defined so we can safely register
1297 # tuple in it to verify the unpickled class also register tuple.

Callers 2

test_abcMethod · 0.85
test_abstractsMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_abcMethod · 0.68
test_abstractsMethod · 0.68