/snap/core20/2769/usr/lib/python3.8/__pycache__
NameSizeModeActions
abc.cpython-38.pyc53340644editdlrm
aifc.cpython-38.pyc254740644editdlrm
antigravity.cpython-38.pyc7970644editdlrm
argparse.cpython-38.pyc625910644editdlrm
ast.cpython-38.pyc167630644editdlrm
asynchat.cpython-38.pyc68510644editdlrm
asyncore.cpython-38.pyc160280644editdlrm
base64.cpython-38.pyc170710644editdlrm
bdb.cpython-38.pyc249210644editdlrm
binhex.cpython-38.pyc121340644editdlrm
bisect.cpython-38.pyc23540644editdlrm
bz2.cpython-38.pyc114450644editdlrm
calendar.cpython-38.pyc270640644editdlrm
cgi.cpython-38.pyc265440644editdlrm
cgitb.cpython-38.pyc101500644editdlrm
chunk.cpython-38.pyc48390644editdlrm
cmd.cpython-38.pyc126260644editdlrm
code.cpython-38.pyc99130644editdlrm
codecs.cpython-38.pyc339560644editdlrm
codeop.cpython-38.pyc64170644editdlrm
colorsys.cpython-38.pyc32400644editdlrm
compileall.cpython-38.pyc94100644editdlrm
configparser.cpython-38.pyc457180644editdlrm
contextlib.cpython-38.pyc202290644editdlrm
contextvars.cpython-38.pyc2430644editdlrm
copy.cpython-38.pyc69870644editdlrm
copyreg.cpython-38.pyc43180644editdlrm
cProfile.cpython-38.pyc54800644editdlrm
crypt.cpython-38.pyc33870644editdlrm
csv.cpython-38.pyc119100644editdlrm
dataclasses.cpython-38.pyc236530644editdlrm
datetime.cpython-38.pyc571730644editdlrm
decimal.cpython-38.pyc3590644editdlrm
difflib.cpython-38.pyc594380644editdlrm
dis.cpython-38.pyc158080644editdlrm
doctest.cpython-38.pyc759740644editdlrm
dummy_threading.cpython-38.pyc11100644editdlrm
enum.cpython-38.pyc259620644editdlrm
filecmp.cpython-38.pyc84270644editdlrm
fileinput.cpython-38.pyc133730644editdlrm
fnmatch.cpython-38.pyc33550644editdlrm
formatter.cpython-38.pyc175450644editdlrm
fractions.cpython-38.pyc187390644editdlrm
ftplib.cpython-38.pyc280070644editdlrm
functools.cpython-38.pyc279010644editdlrm
genericpath.cpython-38.pyc40010644editdlrm
getopt.cpython-38.pyc62710644editdlrm
getpass.cpython-38.pyc41780644editdlrm
gettext.cpython-38.pyc180000644editdlrm
glob.cpython-38.pyc43430644editdlrm
gzip.cpython-38.pyc181840644editdlrm
hashlib.cpython-38.pyc67270644editdlrm
heapq.cpython-38.pyc140700644editdlrm
hmac.cpython-38.pyc63880644editdlrm
imaplib.cpython-38.pyc414640644editdlrm
imghdr.cpython-38.pyc41180644editdlrm
imp.cpython-38.pyc98090644editdlrm
inspect.cpython-38.pyc805930644editdlrm
io.cpython-38.pyc34540644editdlrm
ipaddress.cpython-38.pyc628290644editdlrm
keyword.cpython-38.pyc9980644editdlrm
linecache.cpython-38.pyc38670644editdlrm
locale.cpython-38.pyc346740644editdlrm
lzma.cpython-38.pyc120180644editdlrm
mailbox.cpython-38.pyc602640644editdlrm
mailcap.cpython-38.pyc72060644editdlrm
mimetypes.cpython-38.pyc160310644editdlrm
modulefinder.cpython-38.pyc161150644editdlrm
netrc.cpython-38.pyc37770644editdlrm
nntplib.cpython-38.pyc339740644editdlrm
ntpath.cpython-38.pyc140910644editdlrm
nturl2path.cpython-38.pyc17440644editdlrm
numbers.cpython-38.pyc122020644editdlrm
opcode.cpython-38.pyc54200644editdlrm
operator.cpython-38.pyc136910644editdlrm
optparse.cpython-38.pyc480570644editdlrm
os.cpython-38.pyc313970644editdlrm
pathlib.cpython-38.pyc442090644editdlrm
pdb.cpython-38.pyc472260644editdlrm
pickle.cpython-38.pyc469080644editdlrm
pickletools.cpython-38.pyc672040644editdlrm
pipes.cpython-38.pyc77950644editdlrm
pkgutil.cpython-38.pyc163090644editdlrm
platform.cpython-38.pyc243260644editdlrm
plistlib.cpython-38.pyc273740644editdlrm
poplib.cpython-38.pyc135560644editdlrm
posixpath.cpython-38.pyc104610644editdlrm
pprint.cpython-38.pyc162810644editdlrm
profile.cpython-38.pyc147580644editdlrm
pstats.cpython-38.pyc220660644editdlrm
pty.cpython-38.pyc39550644editdlrm
pyclbr.cpython-38.pyc104510644editdlrm
pydoc.cpython-38.pyc836460644editdlrm
py_compile.cpython-38.pyc73520644editdlrm
queue.cpython-38.pyc106260644editdlrm
quopri.cpython-38.pyc57480644editdlrm
random.cpython-38.pyc201080644editdlrm
re.cpython-38.pyc144220644editdlrm
reprlib.cpython-38.pyc53030644editdlrm
rlcompleter.cpython-38.pyc57550644editdlrm
runpy.cpython-38.pyc81810644editdlrm
sched.cpython-38.pyc65320644editdlrm
secrets.cpython-38.pyc21900644editdlrm
selectors.cpython-38.pyc169350644editdlrm
shelve.cpython-38.pyc94900644editdlrm
shlex.cpython-38.pyc75360644editdlrm
shutil.cpython-38.pyc372190644editdlrm
signal.cpython-38.pyc28430644editdlrm
site.cpython-38.pyc171680644editdlrm
sitecustomize.cpython-38.pyc2200644editdlrm
smtpd.cpython-38.pyc264630644editdlrm
smtplib.cpython-38.pyc355320644editdlrm
sndhdr.cpython-38.pyc69890644editdlrm
socket.cpython-38.pyc277870644editdlrm
socketserver.cpython-38.pyc253610644editdlrm
sre_compile.cpython-38.pyc151420644editdlrm
sre_constants.cpython-38.pyc63590644editdlrm
sre_parse.cpython-38.pyc216470644editdlrm
ssl.cpython-38.pyc450370644editdlrm
stat.cpython-38.pyc43720644editdlrm
statistics.cpython-38.pyc336530644editdlrm
string.cpython-38.pyc73000644editdlrm
stringprep.cpython-38.pyc110170644editdlrm
struct.cpython-38.pyc3300644editdlrm
subprocess.cpython-38.pyc419670644editdlrm
sunau.cpython-38.pyc170800644editdlrm
symbol.cpython-38.pyc24040644editdlrm
symtable.cpython-38.pyc113220644editdlrm
sysconfig.cpython-38.pyc158370644editdlrm
tabnanny.cpython-38.pyc70300644editdlrm
tarfile.cpython-38.pyc630430644editdlrm
telnetlib.cpython-38.pyc182370644editdlrm
tempfile.cpython-38.pyc266530644editdlrm
textwrap.cpython-38.pyc135190644editdlrm
this.cpython-38.pyc12610644editdlrm
threading.cpython-38.pyc399760644editdlrm
timeit.cpython-38.pyc117770644editdlrm
token.cpython-38.pyc24850644editdlrm
tokenize.cpython-38.pyc171600644editdlrm
trace.cpython-38.pyc200260644editdlrm
traceback.cpython-38.pyc199380644editdlrm
tracemalloc.cpython-38.pyc173630644editdlrm
tty.cpython-38.pyc10760644editdlrm
turtle.cpython-38.pyc1300220644editdlrm
types.cpython-38.pyc91770644editdlrm
typing.cpython-38.pyc624200644editdlrm
uu.cpython-38.pyc36050644editdlrm
uuid.cpython-38.pyc236830644editdlrm
warnings.cpython-38.pyc136520644editdlrm
wave.cpython-38.pyc181490644editdlrm
weakref.cpython-38.pyc195180644editdlrm
webbrowser.cpython-38.pyc171200644editdlrm
xdrlib.cpython-38.pyc82210644editdlrm
zipapp.cpython-38.pyc58540644editdlrm
zipfile.cpython-38.pyc593360644editdlrm
zipimport.cpython-38.pyc172750644editdlrm
_bootlocale.cpython-38.pyc12430644editdlrm
_collections_abc.cpython-38.pyc287410644editdlrm
_compat_pickle.cpython-38.pyc55010644editdlrm
_compression.cpython-38.pyc41460644editdlrm
_dummy_thread.cpython-38.pyc60370644editdlrm
_markupbase.cpython-38.pyc77900644editdlrm
_osx_support.cpython-38.pyc115930644editdlrm
_pydecimal.cpython-38.pyc1607350644editdlrm
_pyio.cpython-38.pyc740790644editdlrm
_py_abc.cpython-38.pyc46700644editdlrm
_sitebuiltins.cpython-38.pyc34810644editdlrm
_strptime.cpython-38.pyc160440644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-38.pyc211210644editdlrm
_sysconfigdata__x86_64-linux-gnu.cpython-38.pyc211150644editdlrm
_threading_local.cpython-38.pyc64460644editdlrm
_weakrefset.cpython-38.pyc76000644editdlrm
__future__.cpython-38.pyc41580644editdlrm
__phello__.foo.cpython-38.pyc1270644editdlrm
Edit: /snap/core20/2769/usr/lib/python3.8/__pycache__/dataclasses.cpython-38.pyc (23653B)
U yi5@sddlZddlZddlZddlZddlZddlZddlZddlZddlZdddddddd d d d d g Z Gddde Z GdddZ e Z GdddZeZeiZGdddZedZedZedZdZdZdZedZGdddeZGdddedZGd ddZGd!d"d"Zeed#d#dd#dd$d%dZ d&d'Z!d(d)Z"dded*d+d,Z#d-d.Z$d/d0Z%d1d2Z&d3d4Z'd5d6Z(d7d8Z)d9d:Z*d;d<Z+d=d>Z,d?d@Z-dAdBZ.dCdDZ/dEdFZ0dGdHZ1dIdJZ2dKdLZ3dddde1de2de2e3e2e3e2e3e2e3dMZ4dNdOZ5ddd#d#d#dPdPdPdQdRdZ6dSdZ7dTdUZ8dVd Z9e:dWdXd Z;dYdZZd]d^Z?d_dd#d#d#dPdPdPd`dad Z@dbd ZAdceA_BdS)eN dataclassfieldFieldFrozenInstanceErrorInitVarMISSINGfieldsasdictastuplemake_dataclassreplace is_dataclassc@s eZdZdS)rN__name__ __module__ __qualname__rr!/usr/lib/python3.8/dataclasses.pyrsc@seZdZddZdS)_HAS_DEFAULT_FACTORY_CLASScCsdS)Nz rselfrrr__repr__sz#_HAS_DEFAULT_FACTORY_CLASS.__repr__N)rrrrrrrrrsrc@s eZdZdS) _MISSING_TYPENrrrrrrsrc@seZdZddZddZdS) _FIELD_BASEcCs ||_dSNnamerrrrr__init__sz_FIELD_BASE.__init__cCs|jSrrrrrrrsz_FIELD_BASE.__repr__N)rrrrrrrrrrsr_FIELD_FIELD_CLASSVAR_FIELD_INITVARZ__dataclass_fields__Z__dataclass_params__Z __post_init__z^(?:\s*(\w+)\s*\.)?\s*(\w+)c@seZdZddZdS) _InitVarMetacCst|Sr)r)rZparamsrrr __getitem__sz_InitVarMeta.__getitem__N)rrrr#rrrrr"sr"c@s eZdZdZddZddZdS)rtypecCs ||_dSrr$)rr%rrrrszInitVar.__init__cCs,t|jtr|jj}n t|j}d|dS)Nzdataclasses.InitVar[]) isinstancer%rrepr)rZ type_namerrrrs   zInitVar.__repr__Nrrr __slots__rrrrrrrs) metaclassc@s(eZdZdZddZddZddZdS) r) rr%defaultdefault_factoryr(hashinitcomparemetadata _field_typecCsRd|_d|_||_||_||_||_||_||_|dkrr?r@rArrrr*s z_DataclassParams.__init__c Cs6d|jd|jd|jd|jd|jd|jd S)Nz_DataclassParams(init=r6z,eq=z,order=z ,unsafe_hash=z,frozen=r7r=rrrrr2sz_DataclassParams.__repr__Nr)rrrrr<!sr<Tr,r-r/r(r.r0r1cCs,|tk r|tk rtdt|||||||S)aReturn an object to identify dataclass fields. default is the default value of the field. default_factory is a 0-argument function called to initialize a field's value. If init is True, the field will be a parameter to the class's __init__() function. If repr is True, the field will be included in the object's repr(). If hash is True, the field will be included in the object's hash(). If compare is True, the field will be used in comparison functions. metadata, if specified, must be a mapping which is stored but not otherwise examined by dataclass. It is an error to specify both default and default_factory. z/cannot specify both default and default_factory)r ValueErrorrrBrrrr@s cs(|sdSddfdd|DdS)N()(,csg|]}d|jqS).r.0fobj_namerr _sz_tuple_str..,))join)rLrrrKr _tuple_strVsrPcs"ttfdd}|S)Nc sDt|tf}|krdS|z |}W5|X|S)Nz...)id_thread get_identadddiscard)rkeyresult repr_running user_functionrrwrapperis   z _recursive_repr..wrapper)set functoolswraps)rZr[rrXr_recursive_reprds r_)globalslocals return_typec Cs|dkr i}d|krt|d<d}|tk r4||d<d}d|}ddd|D}d |d |d |d |}d |}d|d|d|}i} t||| | df|S)NZBUILTINSZ _return_typez->_return_typerF css|]}d|VqdS)z Nr)rIbrrr sz_create_fn..z def rEr7z: , zdef __create_fn__(z): z return Z __create_fn__)builtinsrrOkeysexec) rargsZbodyr`rarbZreturn_annotationZtxtZ local_varsnsrrr _create_fnws   rmcCs0|rd|d|d|dS|d|d|S)NzBUILTINS.object.__setattr__(rFr7rG=r)rArvalue self_namerrr _field_assignsrqcCsd|j}|jtk rV|jr@|j||<|d|jd|j}q|j||<|d}n8|jr|jtkrn|j}q|jtk r|j||<|j}ndS|jtkrdSt||j||S)NZ_dflt_z() if z is _HAS_DEFAULT_FACTORY else rD)rr-rr/r,r2r!rq)rJrAr`rpZ default_namerorrr _field_inits"         rrcCsV|jtkr|jtkrd}n&|jtk r2d|j}n|jtk r@d}|jd|j|S)Nrcz=_dflt_z=_HAS_DEFAULT_FACTORYz:_type_)r,rr-r)rJr,rrr _init_params  rsc Csd}|D]:}|jr|jtkr&|jtks,d}q|rtd|jdqdd|D}|ttdg}|D] }t||||} | rj| | qj|rd d d |D} | |d t d | d |sdg}t d|gdd|D|||ddS)NFTznon-default argument z follows default argumentcSsi|]}d|j|jqS)Z_type_)rr%rHrrr s z_init_fn..)r_HAS_DEFAULT_FACTORYrFcss|]}|jtkr|jVqdSr)r2r!rrHrrrrf s z_init_fn..rGrEr7passrcSsg|]}|jrt|qSr)r/rsrHrrrrMsz_init_fn..)rar`rb) r/r,rr- TypeErrorrupdaterurrappendrO_POST_INIT_NAMErm) rrA has_post_initrpr`Z seen_defaultrJraZ body_lineslineZ params_strrrr_init_fns: r}cCs2tdddddd|Ddg|d}t|S) Nrrz(return self.__class__.__qualname__ + f"(rgcSs g|]}|jd|jdqS)z={self.z!r}rrHrrrrMsz_repr_fn..z)"r`)rmrOr_)rr`fnrrr_repr_fns rcCsp|td}|r,dddd|Dd}nd}tdd d |d d d f||dtddd |d ddf||dfS)N)clsrrErFcss|]}t|jVqdSr)r(rrHrrrrf(sz'_frozen_get_del_attr..rNrD __setattr__)rrroz if type(self) is cls or name in :z> raise FrozenInstanceError(f"cannot assign to field {name!r}")z)super(cls, self).__setattr__(name, value))rar` __delattr__rz; raise FrozenInstanceError(f"cannot delete field {name!r}")z"super(cls, self).__delattr__(name))rrOrm)rrr`raZ fields_strrrr_frozen_get_del_attr$s2  rcCs$t|ddd|||dg|dS)N)rotherz%if other.__class__ is self.__class__:z return zreturn NotImplementedr~)rm)rop self_tuple other_tupler`rrr_cmp_fn=srcCs$td|}tddd|dg|dS)Nr__hash__rz return hash(r7r~)rPrm)rr`rrrr_hash_fnKs   rcCs$||jkp"t||jko"|j|jkSr)ClassVarr%Z _GenericAliasZ __origin__)a_typetypingrrr _is_classvarSs  rcCs||jkpt||jkSr)rr%)r dataclassesrrr _is_initvar[s  rc Cst|}|rd}|d}|s2tj|jj}n2tj|j}|rd|j||krdtj|jj}|r|||d|rdSdS)NTF)_MODULE_IDENTIFIER_REmatchgroupsysmodulesgetr__dict__) Z annotationrZa_modulerZis_type_predicaterrlZ module_namemodulerrr_is_typebs)  rcCs8t||t}t|tr|}nt|tjr,t}t|d}||_||_t |_ t j d}|rt||st|jtrt|j|||jtrt|_ |j t krt j t}t||st|jtrt|j|||jtrt|_ |j ttfkr|jtk rtd|jd|j t kr4t|jtttfr4tdt|jd|jd|S)N)r,rfield z cannot have a default factoryzmutable default z for field z$ is not allowed: use default_factory)r9rr'rr4MemberDescriptorTyperrr%rr2rrrrstrrrr rrrr!r-rwr,listdictr\rC)rZa_namerr,rJrrrrr _get_fieldsF             rcCs||jkrdSt|||dS)NTF)rsetattr)rrrorrr_set_new_attributes  rcCsdSrrrrr`rrr_hash_set_nonesrcCsdd|D}t||S)NcSs(g|] }|jdkr|jrn|jr|qSr)r.r0rHrrrrMs  z_hash_add..)r)rrr`fldsrrr _hash_addsrcCstd|jdS)Nz-Cannot overwrite attribute __hash__ in class )rwrrrrr_hash_exceptionsr))FFFF)FFFT)FFTF)FFTT)FTFF)FTFT)FTTF)FTTT)TFFF)TFFT)TFTF)TFTT)TTFF)TTFT)TTTF)TTTTc si}jtjkr tjjj}ni}ttt||||||d} d} jdddD]D} t| t d} | dk rVd} | D]} | || j <qzt| tj rVd} qVj di}fdd|D}|D]L} | || j <tt| j dtr| jtkrt| j qt| j | jqĈjD].\}}t|tr||krt|dq| rz| rf|sftd | sz|rztd tt |j d t}|tkp|dkod jk }|r|std |rtt}dd| D}tdt|||d|krdnd|dd| D}|rHdd|D}tdt|||rdd|D}td|}td|}td td d|||d|rdd|D}td|}td|}dD]>\}}t|t|||||drtd|djdq|r8t||D].}t|j|rtd|jdjqtt |t |t ||f}|rh|||_!tdsjt"t#$%dd _&S)!NFrT__annotations__csg|]\}}t||qSr)r)rIrr%rrrrM]sz"_process_class..z& is a field but has no type annotationz5cannot inherit non-frozen dataclass from a frozen onez5cannot inherit frozen dataclass from a non-frozen oner__eq__z eq must be true if order is truecSsg|]}|jttfkr|qSr)r2rr!rHrrrrMsrrZ__dataclass_self__cSsg|]}|jtkr|qSrr2rrHrrrrMs cSsg|]}|jr|qSr)r(rHrrrrMsrcSsg|]}|jr|qSrr0rHrrrrMsrz==r~cSsg|]}|jr|qSrrrHrrrrMs))__lt__<)__le__z<=)__gt__>)__ge__z>=zCannot overwrite attribute z in class z). Consider using functools.total_ordering__doc__z -> Nonerc)'rrrrr_PARAMSr<__mro__r9_FIELDSvaluesrrAritemsr'rr,rdelattrrwrChasattrrzrr}rrPrrr _hash_actionboolrrinspectZ signaturer r)rr/r(r>r?r@rArr`Zany_frozen_baseZhas_dataclass_basesreZ base_fieldsrJZcls_annotationsZ cls_fieldsrroZ class_hashZhas_explicit_hashr{rZ field_listrrrrZ hash_actionrrr_process_class's                     rFr=cs*fdd}|dkr"|S||S)aReturns the same class as was passed in, with dunder methods added based on the fields defined in the class. Examines PEP 526 __annotations__ to determine fields. If init is true, an __init__() method is added to the class. If repr is true, a __repr__() method is added. If order is true, rich comparison dunder methods are added. If unsafe_hash is true, a __hash__() method function is added. If frozen is true, fields may not be assigned to after instance creation. cst|Sr)rrr>rAr/r?r(r@rrwrapszdataclass..wrapNr)rr/r(r>r?r@rArrrrrscCsBzt|t}Wntk r*tdYnXtdd|DS)zReturn a tuple describing the fields of this dataclass. Accepts a dataclass or an instance of one. Tuple elements are of type Field. z0must be called with a dataclass type or instancecss|]}|jtkr|VqdSrrrHrrrrf s zfields..)r9rAttributeErrorrwtupler)Zclass_or_instancerrrrrs cCstt|tS)z2Returns True if obj is an instance of a dataclass.)rr%r)objrrr_is_dataclass_instancesrcCs t|tr|nt|}t|tS)zEReturns True if obj is a dataclass or an instance of a dataclass.)r'r%rr)rrrrrr s dict_factorycCst|stdt||S)aReturn the fields of a dataclass instance as a new dictionary mapping field names to field values. Example usage: @dataclass class C: x: int y: int c = C(1, 2) assert asdict(c) == {'x': 1, 'y': 2} If given, 'dict_factory' will be used instead of built-in dict. The function applies recursively to field values that are dataclass instances. This will also look into built-in containers: tuples, lists, and dicts. z0asdict() should be called on dataclass instances)rrw _asdict_inner)rrrrrr scst|rDg}t|D]&}tt||j}||j|fq|St|trrt|drrt |fdd|DSt|t tfrt |fdd|DSt|t rt |fdd| DSt |SdS)N_fieldscsg|]}t|qSrrrIvrrrrMOsz!_asdict_inner..c3s|]}t|VqdSrrrrrrrfTsz _asdict_inner..c3s&|]\}}t|t|fVqdSrrrIkrrrrrfVs)rrrr9rryr'rrr%rrrcopydeepcopy)rrrWrJrorrrr4s  r tuple_factorycCst|stdt||S)aReturn the fields of a dataclass instance as a new tuple of field values. Example usage:: @dataclass class C: x: int y: int c = C(1, 2) assert astuple(c) == (1, 2) If given, 'tuple_factory' will be used instead of built-in tuple. The function applies recursively to field values that are dataclass instances. This will also look into built-in containers: tuples, lists, and dicts. z1astuple() should be called on dataclass instances)rrw_astuple_inner)rrrrrr ]scst|r>g}t|D] }tt||j}||q|St|trlt|drlt |fdd|DSt|t tfrt |fdd|DSt|t rt |fdd| DSt |SdS)Nrcsg|]}t|qSrrrrrrrMsz"_astuple_inner..c3s|]}t|VqdSrrrrrrrfsz!_astuple_inner..c3s&|]\}}t|t|fVqdSrrrrrrrfs)rrrr9rryr'rrr%rrrrr)rrrWrJrorrrrus   rr)bases namespacer/r(r>r?r@rAc sdkrint} i} |D]} t| tr<| } d}nDt| dkrR| \} }n.t| dkrr| \} }}|| <ntd| t| tr| std| t| rtd| | | krtd| | | || | <q$| d <t ||ifd d }t ||||||| d S) aReturn a new dynamically created dataclass. The dataclass name will be 'cls_name'. 'fields' is an iterable of either (name), (name, type) or (name, type, Field) objects. If type is omitted, use the string 'typing.Any'. Field objects are created by the equivalent of calling 'field(name, type [, Field-info])'. C = make_dataclass('C', ['x', ('y', int), ('z', int, field(init=False))], bases=(Base,)) is equivalent to: @dataclass class C(Base): x: 'typing.Any' y: int z: int = field(init=False) For the bases and namespace parameters, see the builtin type() function. The parameters init, repr, eq, order, unsafe_hash, and frozen are passed to dataclass(). Nz typing.AnyrzInvalid field: z'Field names must be valid identifiers: z"Field names must not be keywords: zField name duplicated: rcs |Sr)rx)rlrrrz make_dataclass..r=) rr\r'rlenrw isidentifierkeyword iskeywordrTr4 new_classr)Zcls_namerrrr/r(r>r?r@rAseenZannsitemrtpspecrrrrr s:          cOst|dkr tdt|d|r,|\}n4d|krX|d}ddl}|jdtdd ntd t|sptd t|t D]v}|j t krq~|j s|j |kr~td |j d q~|j |kr~|j tkr|jtkrtd|j dt||j ||j <q~|jf|S)a,Return a new object replacing specified fields with new values. This is especially useful for frozen classes. Example usage: @dataclass(frozen=True) class C: x: int y: int c = C(1, 2) c1 = replace(c, x=3) assert c1.x == 3 and c1.y == 2 rz*replace() takes 1 positional argument but z were givenrrNz/Passing 'obj' as keyword argument is deprecatedr) stacklevelz7replace() missing 1 required positional argument: 'obj'z1replace() should be called on dataclass instancesrzC is declared with init=False, it cannot be specified with replace()zInitVar z! must be specified with replace())rrwpopwarningswarnDeprecationWarningrr9rrr2r r/rrCr!r,r __class__)rkZchangesrrrJrrrr s4     z(obj, /, **kwargs))N)Crerrr4rrrhr]rR__all__rrrrurrr5r3rrr r!rrrzcompilerr%r"rrr<rrPr_rmrqrrrsr}rrrrrrrrrrrrrrrrrr rr rrr rr r __text_signature__rrrrs  :   62 ;R>  ) B<