@@ -517,7 +517,6 @@ class Doc:
517
517
also correspond to unexported members of the module, particularly in
518
518
a class's ancestor list.)
519
519
"""
520
- __slots__ = ('module' , 'name' , 'obj' , 'docstring' , 'inherits' )
521
520
522
521
def __init__ (self , name : str , module , obj , docstring : str = '' ):
523
522
"""
@@ -649,9 +648,6 @@ class Module(Doc):
649
648
it was imported from. It is always an absolute import path.
650
649
"""
651
650
652
- __slots__ = ('supermodule' , 'doc' , '_context' , '_is_inheritance_linked' ,
653
- '_skipped_submodules' )
654
-
655
651
def __init__ (self , module : Union [ModuleType , str ], * ,
656
652
docfilter : Optional [Callable [[Doc ], bool ]] = None ,
657
653
supermodule : Optional ['Module' ] = None ,
@@ -1035,8 +1031,6 @@ class Class(Doc):
1035
1031
"""
1036
1032
Representation of a class' documentation.
1037
1033
"""
1038
- __slots__ = ('doc' , '_super_members' )
1039
-
1040
1034
def __init__ (self , name : str , module : Module , obj , * , docstring : Optional [str ] = None ):
1041
1035
assert inspect .isclass (obj )
1042
1036
@@ -1375,8 +1369,6 @@ class Function(Doc):
1375
1369
"""
1376
1370
Representation of documentation for a function or method.
1377
1371
"""
1378
- __slots__ = ('cls' ,)
1379
-
1380
1372
def __init__ (self , name : str , module : Module , obj , * , cls : Optional [Class ] = None ):
1381
1373
"""
1382
1374
Same as `pdoc.Doc`, except `obj` must be a
@@ -1648,8 +1640,6 @@ class Variable(Doc):
1648
1640
Representation of a variable's documentation. This includes
1649
1641
module, class, and instance variables.
1650
1642
"""
1651
- __slots__ = ('cls' , 'instance_var' , 'kind' )
1652
-
1653
1643
def __init__ (self , name : str , module : Module , docstring , * ,
1654
1644
obj = None , cls : Optional [Class ] = None , instance_var : bool = False ,
1655
1645
kind : Literal ["prop" , "var" ] = 'var' ):
0 commit comments