403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.51
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python315/Lib/test/test_inspect/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python315/Lib/test/test_inspect/inspect_fodder3.py
from functools import cached_property

# docstring in parent, inherited in child
class ParentInheritDoc:
    @cached_property
    def foo(self):
        """docstring for foo defined in parent"""

class ChildInheritDoc(ParentInheritDoc):
    pass

class ChildInheritDefineDoc(ParentInheritDoc):
    @cached_property
    def foo(self):
        pass

# Redefine foo as something other than cached_property
class ChildPropertyFoo(ParentInheritDoc):
    @property
    def foo(self):
        """docstring for the property foo"""

class ChildMethodFoo(ParentInheritDoc):
    def foo(self):
        """docstring for the method foo"""

# docstring in child but not parent
class ParentNoDoc:
    @cached_property
    def foo(self):
        pass

class ChildNoDoc(ParentNoDoc):
    pass

class ChildDefineDoc(ParentNoDoc):
    @cached_property
    def foo(self):
        """docstring for foo defined in child"""

Youez - 2016 - github.com/yon3zu
LinuXploit