MCPcopy Create free account
hub / github.com/python/cpython / Foo

Class Foo

Lib/test/test_property.py:306–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 # be set via property subclasses in the first place.
305 with self.assertRaises(AttributeError):
306 class Foo(object):
307 @PropertySubSlots
308 def spam(self):
309 """Trying to copy this docstring will raise an exception"""
310 return 1
311
312 def test_property_with_slots_no_docstring(self):
313 # https://github.com/python/cpython/issues/98963#issuecomment-1574413319

Calls 1

PropertySubClass · 0.70