from nbdev.showdoc import show_doc
from fastcore.utils import patch
from fastcore.meta import delegates
#|export
class Foo:
def __init__(self,
a, # A thing
b:int=None): # Another thing
...
show_doc(Foo)
Foo (a, b:int=None)
Initialize self. See help(type(self)) for accurate signature.
Type | Default | Details | |
---|---|---|---|
a | A thing | ||
b | int | None | Another thing |
#|export
@patch
def a_method(self:Foo, a:list,b:dict,c):
"This is a method"
...
#|export
@delegates()
class B(Foo):
def __init__(self, c, d:str="a", **kwargs): ...
show_doc(B)