@Iaxh ydZddlmZddlmZidddddd d d d d dd ddddddddddddddddddd d!d"d#d$d d%d&d'Zd(eDZGd)d*ejZd+S),aFixer for removing uses of the types module. These work for only the known names in the types module. The forms above can include types. or not. ie, It is assumed the module is imported either as: import types from types import ... # either * or specific types The import statements are not modified. There should be another fixer that handles at least the following constants: type([]) -> list type(()) -> tuple type('') -> str ) fixer_base)Name BooleanTypebool BufferType memoryview ClassTypetype ComplexTypecomplexDictTypedictDictionaryType EllipsisTypeztype(Ellipsis) FloatTypefloatIntTypeintListTypelistLongType ObjectTypeobjectNoneTypez type(None)NotImplementedTypeztype(NotImplemented) SliceTypeslice StringTypebytes StringTypesz(str,)tuplestrrange) TupleTypeTypeType UnicodeType XRangeTypecg|]}d|zS)z)power< 'types' trailer< '.' name='%s' > >).0ts >/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_types.py r-3sPPPQ 4q 8PPPcBeZdZdZdeZdZdS)FixTypesT|ct|dj}|rt||jSdS)Nname)prefix) _TYPE_MAPPINGgetvaluerr4)selfnoderesults new_values r, transformzFixTypes.transform9s>!%%gfo&;<<  7 $+666 6tr.N)__name__ __module__ __qualname__ BM_compatiblejoin_patsPATTERNr<r)r.r,r0r05s7MhhuooGr.r0N) __doc__r fixer_utilrr5rBBaseFixr0r)r.r,rHsp&| f   F  6  ) W 5 F E x L 5 g!" g#$ %&- 2 QP-PPPz!r.