| 372 | |
| 373 | # For test_py_methods |
| 374 | class PyMethodsTest: |
| 375 | @staticmethod |
| 376 | def cheese(): |
| 377 | return "cheese" |
| 378 | @classmethod |
| 379 | def wine(cls): |
| 380 | assert cls is PyMethodsTest |
| 381 | return "wine" |
| 382 | def biscuits(self): |
| 383 | assert isinstance(self, PyMethodsTest) |
| 384 | return "biscuits" |
| 385 | class Nested: |
| 386 | "Nested class" |
| 387 | @staticmethod |
| 388 | def ketchup(): |
| 389 | return "ketchup" |
| 390 | @classmethod |
| 391 | def maple(cls): |
| 392 | assert cls is PyMethodsTest.Nested |
| 393 | return "maple" |
| 394 | def pie(self): |
| 395 | assert isinstance(self, PyMethodsTest.Nested) |
| 396 | return "pie" |
| 397 | |
| 398 | # For test_c_methods |
| 399 | class Subclass(tuple): |
no outgoing calls
searching dependent graphs…