ó phXc-@@s- ddlmZmZddlZddlmZmZddlZddlZddlZ ddl Z ddl Z yddl jZ Wnek r¦ddlZ nXdddddd d d d d ddddddddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0g-Zd1„Zd2„Zd3efd4„ƒYZd5efd6„ƒYZd7efd8„ƒYZd9efd:„ƒYZd;efd<„ƒYZd=„Zd>„Zd?„Zd@„ZdA„ZdBefdC„ƒYZdDefdE„ƒYZedFe ƒZ!dGefdH„ƒYZ"dIefdJ„ƒYZ#e#dFe ƒZ$dKefdL„ƒYZ%dMefdN„ƒYZ&e&dOƒZ'e&dPƒZ(e&dQƒZ)e&dRdSe ƒZ*e&dTdSe ƒZ+e&dUdSe ƒZ,e&dVdWe ƒZ-e&d(e.e/ƒZ0dX„Z1dddY„Z3dZ„Z4d[„Z5gZ6d\„Z7d]efd^„ƒYZ8d_efd`„ƒYZ9e9dFe ƒZ:daefdb„ƒYZ;dcefdd„ƒYZ<e<dFe ƒZ=de„Z>df„Z?dg„Z@dh„ZAdi„ZBdjeejCfdk„ƒYZDdZEdl„ZFdmefdn„ƒYZEdoefdp„ƒYZGdqefdr„ƒYZHdseDfdt„ƒYZIdueJfdv„ƒYZKdweDfdx„ƒYZLdyefdz„ƒYZMd{„ZNd|„ZOddd}„ZPd~„ZQd„ZRd€„ZSd„ZTd‚eDfdƒ„ƒYZUd„efd…„ƒYZVe jWZWd†eEe*fd‡„ƒYZXdˆeXe*fd‰„ƒYZYdŠeVfd‹„ƒYZZdŒeVfd„ƒYZ[dŽeVfd„ƒYZ\deVe*fd‘„ƒYZ]e^e dƒrØd’eXe*fd“„ƒYZ_nd’eVe*fd”„ƒYZ_e j`Z`d•eEe*fd–„ƒYZad—e`eXe*eae*fd˜„ƒYZbd™ebe'fdš„ƒYZcd›e`eXe(eae(eEe(e,ffdœ„ƒYZddede(e)ffdž„ƒYZee^e dƒrÚdŸe`e_e*eae*fd „ƒYZfn$dŸe`eXe*eae*fd¡„ƒYZfd¢efe'fd£„ƒYZgd¤efehfd¥„ƒYZieijjekƒeijjelƒd¦emege'fd§„ƒYZnd¨eoece'fd©„ƒYZpdªeqebe*fd«„ƒYZrd¬e`eXe*fd­„ƒYZsd®ese(ebe(fd¯„ƒYZtd°eseKe(e,febeKe(e,feEe(e,ffd±„ƒYZud²ese,fd³„ƒYZvd´eweee(e)ffdµ„ƒYZxd¶ejyeee(e)ffd·„ƒYZze^e d'ƒr¡e j{Z|n e j}Z|d¸eYe*eEe*e-e+ffd¹„ƒYZ{e&dºdSe d»eƒZ~d¼eEe~fd½„ƒYZd¾„Z€d¿„Ze/Z‚eƒZ„dÀeEe0fdÁ„ƒYZ…dÂe…e.fdăYZ†dÄe…e/fdÅ„ƒYZ‡dÆefdÇ„ƒYZˆe‰dÈeˆ_‰eˆe jŠeˆj‰|dtkr>|Std|ƒ‚dS(Nu_rootuCannot instantiate %r(RR3RtTrueR(RRRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR´scC@stt|ƒjƒS(N(R R/R(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __reduce__ºs((RR%R(R2RR5(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR3«s t _ForwardRefcB@sAeZdZd Zd„Zd„Zd„Zd„Zd „ZRS( u-Internal wrapper to hold a forward reference.u__forward_arg__u__forward_code__u__forward_evaluated__u__forward_value__cC@s tt|ƒj|ƒt|tƒs;td|fƒ‚nyt|ddƒ}Wn$tk rwtd|fƒ‚nX||_||_ t |_ d|_ dS(Nu,Forward reference must be a string -- got %ruuevalu1Forward reference must be an expression -- got %r(RR6RRt basestringRtcompilet SyntaxErrort__forward_arg__t__forward_code__R)t__forward_evaluated__tNonet__forward_value__(Rtargtcode((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRÄs    cC@s™|j s||k r’|dkr;|dkr;i}}n*|dkrP|}n|dkre|}ntt|j||ƒdƒ|_t|_n|jS(Nu*Forward references must evaluate to types.(R<R=t _type_checktevalR;R>R4(RR R!((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR"Òs       cC@stdƒ‚dS(Nu4Forward references cannot be used with isinstance().(R(Rtobj((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__instancecheck__àscC@stdƒ‚dS(Nu4Forward references cannot be used with issubclass().(R(RR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__subclasscheck__ãscC@sd|jfS(Nu_ForwardRef(%r)(R:(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR'æs(u__forward_arg__u__forward_code__u__forward_evaluated__u__forward_value__( RR%R(R2RR"RDRER'(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR6¾s    t _TypeAliascB@sAeZdZd Zd„Zd„Zd„Zd„Zd „ZRS( u:Internal helper class for defining generic variants of concrete types. Note that this is not a type; let's call it a pseudo-type. It cannot be used in instance and subclass checks in parameterized form, i.e. ``isinstance(42, Match[str])`` raises ``TypeError`` instead of returning ``False``. unameutype_varu impl_typeu type_checkercC@s(||_||_||_||_dS(utInitializer. Args: name: The name, e.g. 'Pattern'. type_var: The type parameter, e.g. AnyStr, or the specific type, e.g. str. impl_type: The implementation type. type_checker: Function that takes an impl_type instance. and returns a value that should be a type_var instance. N(Rttype_vart impl_typet type_checker(RRRGRHRI((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRös   cC@sd|jt|jƒfS(Nu%s[%s](RRRG(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR' scC@sÄt|jtƒs%td|ƒ‚n|jjrtt|tƒrtt||jjƒsttd||jfƒ‚qtnt|tƒr¥||jk r¥td|ƒ‚n|j|j||j |j ƒS(Nu#%s cannot be further parameterized.u&%s is not a valid substitution for %s.u%s cannot be re-parameterized.( RRGtTypeVarRt__constraints__R/t issubclasst __class__RRHRI(Rt parameter((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __getitem__ scC@s1t|jtƒs!tdƒ‚nt||jƒS(Nu<Parameterized type aliases cannot be used with isinstance().(RRGRJRRH(RRC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRDscC@s1t|jtƒs!tdƒ‚nt||jƒS(Nu<Parameterized type aliases cannot be used with issubclass().(RRGRJRRLRH(RR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyREs(unameutype_varu impl_typeu type_checker( RR%R(R2RR'RORDRE(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRFês   cC@sCx<|D]4}t|tƒs+t|tƒr|j|ƒqqWdS(N(RR R,R$(ttypesR#tt((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR$&s cC@sg}t||ƒt|ƒS(N(R$R.(RPR#((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt _type_vars,s cC@s2t|tƒst|tƒr.|j||ƒS|S(N(RR R,R"(RQR R!((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR"2scC@sû|dkrtdƒSt|tƒr4t|ƒ}nt|tƒrXt|ƒjdks{t|ttfƒ r•t|ƒ r•t|d|fƒ‚nt|ƒjdkr½t |ddƒ sät|t ƒr÷t |ƒt t fkr÷td|ƒ‚n|S( uˆCheck that the argument is a type, and return it (internal helper). As a special case, accept None and return type(None) instead. Also, _TypeAlias instances (e.g. Match, Pattern) are acceptable. The msg argument is a human-readable error message, e.g. "Union[arg, ...]: arg should be a type." We append the repr() of the actual value (truncated to 100 chars). u _ClassVaru Got %.100r.u_Unionu _Optionalu __origin__u&Plain %s is not valid as type argumentN(u_Unionu _Optional(R=R/RR7R6R,RtcallableRtgetattrR t_gorgtGenerict _Protocol(R?tmsg((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRA8s  $#'cC@s‚t|tƒrOt|tƒ rO|jdkr8t|ƒSd|jt|ƒfS|tkr_dSt|tjƒrx|jSt |ƒS(u;Return the repr() of an object, special-casing types (internal helper). If obj is a type, we return a shorter version than the default type.__repr__, based on the module and qualified name, which is typically enough to uniquely identify a type. For everything else, we fall back on repr(obj). u __builtin__u%s.%su...( RR/R R%R tEllipsisRPt FunctionTypeRtrepr(RC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRSs  t ClassVarMetacB@seZdZd„ZRS(uMetaclass for _ClassVarcC@s2|j|ƒtt|ƒj||||ƒ}|S(N(RRR\R(RRRRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRis !(RR%R(R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR\fst _ClassVarcB@sVeZdZeZdZd ed„Zd„Z d„Z d„Z d„Z d„Z RS( uCSpecial type construct to mark class variables. An annotation wrapped in ClassVar indicates that a given attribute is intended to be used as a class variable and should not be set on instances of that class. Usage:: class Starship: stats = {} # type: ClassVar[Dict[str, int]] # class variable damage = 10 # type: int # instance variable ClassVar accepts only types and cannot be further subscribed. Note that ClassVar is not a class itself, and should not be used with isinstance() or issubclass(). u__type__cC@s ||_dS(N(t__type__(Rttpt_root((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRƒscC@sdt|ƒ}|jdkrD|t|dj|jdƒƒdtƒStdj|jdƒƒ‚dS(Nu{} accepts only types.iR`u {} cannot be further subscripted(R/R^R=RAtformatRR4R(RtitemR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRO†s   cC@s%t|ƒt|j||ƒdtƒS(NR`(R/R"R^R4(RR R!((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR"scC@sGtt|ƒjƒ}|jdk rC|djt|jƒƒ7}n|S(Nu[{}](RR]R'R^R=RaR(Rtr((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR'“scC@stt|ƒj|jfƒS(N(thashR/RR^(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__hash__™scC@s<t|tƒstS|jdk r2|j|jkS||kS(N(RR]tNotImplementedR^R=(Rtother((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__eq__œs (u__type__N(RR%R(R\R1R2R=R)RROR"R'ReRh(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR]os   R`tAnyMetacB@seZdZd„ZRS(uMetaclass for Any.cC@s2|j|ƒtt|ƒj||||ƒ}|S(N(RRRiR(RRRRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR©s !(RR%R(R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRi¦st_AnycB@s,eZdZeZdZd„Zd„ZRS(u`Special type indicating an unconstrained type. - Any is compatible with every type. - Any assumed to have all methods. - All values assumed to be instances of Any. Note that all the above statements are true from the point of view of static type checkers. At runtime, Any should not be used with instance or class checks. cC@stdƒ‚dS(Nu%Any cannot be used with isinstance().(R(RRC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRD½scC@stdƒ‚dS(Nu%Any cannot be used with issubclass().(R(RR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyREÀs((RR%R(RiR1R2RDRE(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRj¯s   t TypeVarMetacB@seZd„ZRS(cC@s,|j|ƒtt|ƒj||||ƒS(N(RRRkR(RRRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRÈs (RR%R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRkÇsRJcB@sGeZdZeZd Zd„Zd„Zd„Zd „Z d „Z RS( u—Type variable. Usage:: T = TypeVar('T') # Can be anything A = TypeVar('A', str, bytes) # Must be str or bytes Type variables exist primarily for the benefit of static type checkers. They serve as the parameters for generic types as well as for generic function definitions. See class Generic for more information on generic types. Generic functions work as follows: def repeat(x: T, n: int) -> List[T]: '''Return a list containing n references to x.''' return [x]*n def longest(x: A, y: A) -> A: '''Return the longest of two strings.''' return x if len(x) >= len(y) else y The latter example's signature is essentially the overloading of (str, str) -> str and (bytes, bytes) -> bytes. Also note that if the arguments are instances of some subclass of str, the return type is still plain str. At runtime, isinstance(x, T) and issubclass(C, T) will raise TypeError. Type variables defined with covariant=True or contravariant=True can be used do declare covariant or contravariant generic types. See PEP 484 for more details. By default generic types are invariant in all type variables. Type variables can be introspected. e.g.: T.__name__ == 'T' T.__constraints__ == () T.__covariant__ == False T.__contravariant__ = False A.__constraints__ == (str, bytes) u__name__u __bound__u__constraints__u __covariant__u__contravariant__c@s)tt|ƒj|||Ž|jddƒ}|jdtƒ}|jdtƒ}||_|rv|rvtdƒ‚nt|ƒ|_ t|ƒ|_ |rµ|dk rµt dƒ‚n|rÜt |ƒdkrÜt dƒ‚nd‰t ‡fd †|Dƒƒ|_|rt|d ƒ|_n d|_dS( Nuboundu covariantu contravariantu"Bivariant types are not supported.u-Constraints cannot be combined with bound=...iu"A single constraint is not allowedu:TypeVar(name, constraint, ...): constraints must be types.c3@s|]}t|ˆƒVqdS(N(RA(t.0RQ(RX(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys suBound must be a type.(RRJRtgetR=R)Rt ValueErrortboolt __covariant__t__contravariant__RR-R.RKRAt __bound__(RRt constraintstkwargstboundt covariantt contravariant((RXs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRûs$  cC@s ||kr|j|ƒndS(N(tappend(RR#((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR$s cC@s5|jrd}n|jr$d}nd}||jS(Nu+u-u~(RpRqR(Rtprefix((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR's     cC@stdƒ‚dS(Nu0Type variables cannot be used with isinstance().(R(Rtinstance((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRDscC@stdƒ‚dS(Nu0Type variables cannot be used with issubclass().(R(RR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRE s(u__name__u __bound__u__constraints__u __covariant__u__contravariant__( RR%R(RkR1R2RR$R'RDRE(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRJÍs(   uTuKTuVTuT_coRvuV_couVT_couT_contraRwcC@s{|dkrg}nt|dƒr4|j||ƒSt|tƒrwx1t|ƒD] \}}||krP||SqPWn|S(uÍAn internal helper function: replace arg if it is a type variable found in tvars with corresponding substitution from args or with corresponding substitution sub-tree if arg is a generic type. u _subs_treeN(R=thasattrt _subs_treeRRJt enumerate(R?R#Rtittvar((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt _replace_arg3s   c C@sÞ|jdkr|S|j}g}x)|jdk rM|j|ƒ|j}q%Wg}x*|jD]}|jt|||ƒƒq^WxV|D]N}g}x9t|jƒD](\} }|jt||j|ƒƒq¤W|}qˆW|S(uòAn internal helper function: calculate substitution tree for generic cls after replacing its type parameters with substitutions in tvars -> args (if any). Repeat the same following __origin__'s. Return a list of arguments with all possible substitutions performed. Arguments that are generic classes themselves are represented as tuples (so that no new classes are created by this function). For example: _subs_tree(List[Tuple[int, T]][str]) == [(Tuple, int, str)] N(t __origin__R=Rxt__args__R€R}t__parameters__( RR#Rtcurrentt orig_chaint tree_argsR?toclst new_tree_argsR~((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR|Ds       c@s†g}x‘|D]‰}t|tƒrD|jtkrD|j|jƒq t|tƒr‰t|ƒdkr‰|dtkr‰|j|dƒq |j|ƒq Wt |ƒ‰tˆƒt|ƒkrg}x7|D]/}|ˆkrË|j|ƒˆj |ƒqËqËW|}nt |ƒ‰xV|D]N‰tˆt ƒs5qnt ‡fd†ˆˆhDƒƒrˆj ˆƒqqWt‡fd†|DƒƒS(uAn internal helper for Union creation and substitution: flatten Union's among parameters, then remove duplicates and strict subclasses. iic3@sK|]A}t|tƒo$|jdk st|tƒoBtˆ|ƒVqdS(N(Rt GenericMetaRR=R/RL(Rltt2(tt1(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys †sc3@s!|]}|ˆkr|VqdS(N((RlRQ(t all_params(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys ‹s( Rt_UnionRtUniontextendR‚R.R-RxtsettremoveR/tany(t parameterstparamstpt new_paramsRQ((RŒR‹s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt_remove_dups_flattenes0 1      cC@s„|js"tdt|ƒƒ‚nt|ƒ}t|jƒ}||kr€td||kradndt|ƒ||fƒ‚ndS(Nu%s is not a generic classu0Too %s parameters for %s; actual %s, expected %sumanyufew(RƒRR[R-(RR“talentelen((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt_check_genericŽs   c@sDd‰i‰tjˆjƒtjˆƒ‡‡‡fd†ƒ}|S(Ni€c@sw|}y ˆ|SWn^tk r,ˆ|ŒStk rrˆ|Œ}tˆƒˆkrdˆjƒn|ˆ|<|SXdS(N(RtKeyErrorR-tclear(Rtkeytvalue(tcachetfunctmaxsize(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytinner¡s       (t _cleanupsRxRœt functoolstwraps(R R¢((RŸR R¡s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt _tp_cacheœs $t UnionMetacB@seZdZd„ZRS(uMetaclass for Union.cC@s,|j|ƒtt|ƒj||||ƒS(N(RRR§R(RRRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR·s (RR%R(R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR§´sRcB@seZdZeZdZddd„Zd„Zd„Z d„Z d „Z e d „ƒZ ddd „Zd „Zd „Zd„Zd„ZRS(uÃUnion type; Union[X, Y] means either X or Y. To define a union, use e.g. Union[int, str]. Details: - The arguments must be types and there must be at least one. - None as an argument is a special case and is replaced by type(None). - Unions of unions are flattened, e.g.:: Union[Union[int, str], float] == Union[int, str, float] - Unions of a single argument vanish, e.g.:: Union[int] == int # The constructor actually returns int - Redundant arguments are skipped, e.g.:: Union[int, str, int] == Union[int, str] - When comparing unions, the argument order is ignored, e.g.:: Union[int, str] == Union[str, int] - When two arguments have a subclass relationship, the least derived argument is kept, e.g.:: class Employee: pass class Manager(Employee): pass Union[int, Employee, Manager] == Union[int, Employee] Union[Manager, int, Employee] == Union[int, Employee] Union[Employee, Manager] == Employee - Similar for object:: Union[int, object] == object - You cannot subclass or instantiate a union. - You can use Optional[X] as a shorthand for Union[X, None]. u__parameters__u__args__u __origin__u __tree_hash__cO@stt|ƒj|||||Ž}|dkrdd|_d|_d|_ttdƒƒ|_ |St |t ƒs‚t dƒ‚n|t kr·t|ƒ}t|ƒdkr·|dSnt|ƒ|_||_||_|jƒ}t |t ƒr tt|ƒƒ|_ nt|ƒ|_ |S(NuUnionuExpected parameters=ii(uUnion(RRRR=RƒR‚RRdt frozensett __tree_hash__RR.RRŽR—R-RRR|(RR“toriginRRRt subs_tree((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRës*$          c@s‚|jdkr|St‡‡fd†|jDƒƒ}t|jˆˆƒ}||jkrl||jkrl|S|j||dtƒS(Nc3@s!|]}t|ˆˆƒVqdS(N(R"(RlRQ(R R!(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys sR`(R‚R=R.R"RRMR4(RR R!tev_argst ev_origin((R R!s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR"s"cC@s)|jr%|jr%t|j|ƒndS(N(RRƒR$(RR#((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR$scC@sX|jdkr"tt|ƒjƒS|jƒ}t|tƒsGt|ƒS|dj |ƒS(Ni( RR=RRR'R|RR.R[t _tree_repr(Rttree((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR's   cC@s~g}xQ|dD]E}t|tƒs<|jt|ƒƒq|j|dj|ƒƒqWtt|ƒjƒddj|ƒS(Niiu[%s]u, ( RR.RxRR®RRR'R(RR¯targ_listR?((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR®s c@s¥|dkrtdƒ‚nt|tƒs6|f}n|jdkrNd‰nd‰t‡fd†|Dƒƒ}|tk rŒt||ƒn|j|d|dtƒS(Nu Cannot take a Union of no types.u)Union[arg, ...]: each arg must be a type.u*Parameters to generic types must be types.c3@s|]}t|ˆƒVqdS(N(RA(RlR•(RX(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys /sRªR`(( RRR.RR=RŽRšRMR4(RR“((RXs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRO%s    cC@sS|tkrtSt|||ƒ}t|ƒ}t|ƒdkrH|dStf|S(Nii(RŽR|R—R-(RR#RR†((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR|4s  cC@s/t|tƒs|jƒ|kS|j|jkS(N(RRR|R©(RRg((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRh=scC@s|jS(N(R©(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyReBscC@stdƒ‚dS(Nu(Unions cannot be used with isinstance().(R(RRC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRDEscC@stdƒ‚dS(Nu(Unions cannot be used with issubclass().(R(RR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyREHs(u__parameters__u__args__u __origin__u __tree_hash__N(RR%R(R§R1R2R=RR"R$R'R®R¦ROR|RhReRDRE(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR¼s*      t OptionalMetacB@seZdZd„ZRS(uMetaclass for Optional.cC@s,|j|ƒtt|ƒj||||ƒS(N(RRR±R(RRRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRRs (RR%R(R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR±Ost _OptionalcB@s)eZdZeZdZed„ƒZRS(uEOptional type. Optional[X] is equivalent to Union[X, None]. cC@s#t|dƒ}t|tdƒfS(Nu#Optional[t] requires a single type.(RARŽR/R=(RR?((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRO`s((RR%R(R±R1R2R¦RO(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR²WscC@s#x|jdk r|j}qW|S(u@Return the farthest origin of a generic class (internal helper).N(RR=(ta((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRUis cC@st|ƒt|ƒkS(u6Return whether two generic classes are equivalent (internal helper). The intention is to consider generic class X and any of its parameterized forms (X[T], X[int], etc.) as equivalent. However, X is not equivalent to a subclass of X. The relation is reflexive, symmetric and transitive. (RU(R³tb((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt_geqvqs cC@sct}xVt|jd ƒD]A\}}t|tƒrt|ƒtkr|j|d}qqW|S(u€Helper for Generic.__new__. Returns the class after the last occurrence of Generic or Generic[...] in cls.__mro__. iÿÿÿÿi(tobjectR}t__mro__RR‰RURV(Rt next_in_mroR~tc((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt _next_in_mro€s  !cC@s]|tkrtd|ƒ‚n|jdk rYtjdƒjddkrYtdƒ‚ndS( u>An internal helper to prohibit isinstance([1], List[str]) etc.u5Class %r cannot be used with class or instance checksiu__name__uabcu functoolsuCParameterized generics cannot be used with class or instance checksN(uabcu functools(RVRRR=Rt _getframet f_globals(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt_valid_for_checkŽs   cC@s4t|jtjƒr!d„}n d„}t|ƒS(uConstruct a __subclasshook__ callable that incorporates the associated __extra__ class in subclass checks performed against cls. cS@s‘t|ƒ|jj|ƒ}|tk r,|S|jt|ddƒkrKtSx?|jjƒD].}t|tƒrvq[nt ||ƒr[tSq[WtS(Nu__mro__(( R½t __extra__t__subclasshook__RfRTR4t__subclasses__RR‰RL(Rtsubclasstrestscls((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __extrahook__¢s  cS@s-t|ƒ|jr)t||jƒr)tStS(N(R½R¾RLR4Rf(RRÁ((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRıs (RR¾tabctABCMetaR+(RRÄ((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt_make_subclasshook™s  R‰cB@s•eZdZd d d d d d„Zd„Zd„Zd„Zd„Zd„Z d d d„Z d„Z d „Z e d „ƒZd „Zd „ZRS(uMetaclass for generic types.c @sá|dk rnt|ƒ}d} xn|D]f} | tkrItdƒ‚nt| tƒr(| jtkr(| dk r‚tdƒ‚n| j} q(q(W| dkr§|} not|ƒ} t| ƒ‰| ˆkstddj ‡fd†|Dƒƒdj d„| Dƒƒfƒ‚n| }|} |dkr:|j dƒ}n|dk rwt |ƒt j krw||krw|f|}ntd„|Dƒƒ}td „|Dƒƒr¼td „|Dƒƒ}ntt|ƒj||||ƒ} || _|rtd „|Dƒƒnd| _|| _|| _t| ƒ| _|dkrD| | _nd |krV|szt| jd ƒrŒ| jjdkrŒt| ƒ| _n|r°t|dƒr°|j| _n|rÈt| jƒƒnt| jfƒ| _| S(Nu!Cannot inherit from plain Genericu0Cannot inherit from Generic[...] multiple types.u6Some type variables (%s) are not listed in Generic[%s]u, c3@s'|]}|ˆkrt|ƒVqdS(N(R(RlRQ(tgvarset(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys âscs@s|]}t|ƒVqdS(N(R(Rltg((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys ãsu __extra__cs@s0|]&}t|tƒr$t|ƒn|VqdS(N(RR‰RU(RlR´((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys ëscs@s*|] }t|tƒo!|tk VqdS(N(RR‰RV(RlR´((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys îscs@s!|]}|tk r|VqdS(N(RV(RlR´((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys ïscs@s9|]/}|tkrtn|tkr-dn|VqdS(N((t_TypingEllipsisRYt _TypingEmpty(RlR³((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys õsu__subclasshook__u__name__u __extrahook__u __qualname__(R=RRRVRRR‰RRƒRRRmR/RÅRÆR.R’RRR‚R¾Rºt__next_in_mro__t__orig_bases__R{R¿RRÇRRdR|R©(RRRRR#RRªtextrat orig_basestgvarsRttvarsett initial_basesR((RÈs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR¼s^           # -! %    -cO@sDtt|ƒj||Žt|jtjƒr@|jj|_ndS(N(RR‰RRR¾RÅRÆt _abc_registry(RRRt((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR scC@s)|jr%|jr%t|j|ƒndS(N(RRƒR$(RR#((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR$sc@sÏ|jr|jjˆˆƒnd}|jrOt‡‡fd†|jDƒƒnd}||jkrw||jkrw|S|j|j|jt|j ƒd|rªt |ƒndd|d|d|j d|j ƒS(Nc3@s!|]}t|ˆˆƒVqdS(N(R"(RlR³(R R!(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys sR#RRªRÎRÏ( RR"R=R‚R.RMRt __bases__tdictt__dict__RRR¾RÍ(RR R!R­R¬((R R!s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR"s$1  cC@s5|jdkr"tt|ƒjƒS|j|jƒƒS(N(RR=RR‰R'R®R|(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR'&scC@sšg}xm|dD]a}|dkr3|jdƒqt|tƒsX|jt|ƒƒq|j|dj|ƒƒqWtt|ƒjƒddj|ƒS(Niu()iu[%s]u, (( RxRR.RR®RR‰R'R(RR¯R°R?((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR®+s cC@s<|jdkr|St|||ƒ}t|ƒft|ƒS(N(RR=R|RUR.(RR#RR†((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR|6scC@sKt|tƒstS|jdks1|jdkr;||kS|j|jkS(N(RR‰RfRR=R©(RRg((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRh<s  cC@s|jS(N(R©(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyReCsc@s±t|tƒs|f}n| rMt|ƒtk rMtdt|ƒƒ‚nd‰t‡fd†|Dƒƒ}|tkrÜtd„|Dƒƒs tdƒ‚ntt |ƒƒt|ƒkrÍtdƒ‚n|}|}n|tt fkrt |ƒ}|}nh|t kr|}|}nM|j tt fkrLtdt|ƒƒ‚nt||ƒt |ƒ}|}|j|j|jt|jƒd|d |d |d |jd |jƒS( Nu)Parameter list to %s[...] cannot be emptyu*Parameters to generic types must be types.c3@s|]}t|ˆƒVqdS(N(RA(RlR•(RX(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys Nscs@s|]}t|tƒVqdS(N(RRJ(RlR•((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys Qsu5Parameters to Generic[...] must all be type variablesu-Parameters to Generic[...] must all be uniqueu'Cannot subscript already-subscripted %sR#RRªRÎRÏ(RR.RUtTupleRR RVtallR-RtCallableRRRWRR[RšRMRRÔRÕRÖR¾RÍ(RR”R#R((RXs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyROFsH             cC@s#t|tƒst|j|ƒStS(N(RR/RLRMR)(RRz((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRDrsc C@s@|j|j|jt|jƒ|j|j|j|j|j ƒS(N( RMRRÔRÕRÖRƒR‚RR¾RÍ(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__copy__|sN(RR%R(R=RRR$R"R'R®R|RhReR¦RORDRÚ(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR‰¹sP       , cO@sp|jdkr|j|ƒSt|ƒ}|j|ƒ}y ||_Wntk rWnX|j||Ž|SdS(N(RR=RRUt__orig_class__tAttributeErrorR(tbase_clsRRRRªRC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt _generic_new†s    RVcB@s#eZdZeZdZd„ZRS(uCAbstract base class for generic types. A generic type is typically declared by inheriting from this class parameterized with one or more type variables. For example, a generic mapping type might be defined as:: class Mapping(Generic[KT, VT]): def __getitem__(self, key: KT) -> VT: ... # Etc. This class can then be used as follows:: def lookup_name(mapping: Mapping[KT, VT], key: KT, default: VT) -> VT: try: return mapping[key] except KeyError: return default cO@s4t|tƒrtdƒ‚nt|j|||ŽS(NuHType Generic cannot be instantiated; it can be used only as a base class(RµRVRRÞRÌ(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR®s((RR%R(R‰R1R2R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRV–sRËcB@seZdZRS(u´Internal placeholder for () or []. Used by TupleMeta and CallableMeta to allow empty list/tuple in specific places, without allowing them to sneak in where prohibited. (RR%R((((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR˵sRÊcB@seZdZRS(u(Internal placeholder for ... (ellipsis).(RR%R((((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRʼst TupleMetacB@s/eZdZed„ƒZd„Zd„ZRS(uMetaclass for Tuple (internal).c@s|jdk st|tƒ r5tt|ƒj|ƒS|dkrZtt|ƒjtfƒSt|t ƒsu|f}nt |ƒdkrÌ|dt krÌd‰t |dˆƒ}tt|ƒj|t fƒSd‰t ‡fd†|Dƒƒ}tt|ƒj|ƒS(Niiu Tuple[t, ...]: t must be a type.iu*Tuple[t0, t1, ...]: each t must be a type.c3@s|]}t|ˆƒVqdS(N(RA(RlR•(RX(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys Òs((RR=RµR×RRßRORËRR.R-RYRARÊ(RR“R•((RXs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyROÃs  "cC@s,|jdkrt|tƒStdƒ‚dS(Nu5Parameterized Tuple cannot be used with isinstance().(R‚R=RR.R(RRC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRDÕs cC@s,|jdkrt|tƒStdƒ‚dS(Nu5Parameterized Tuple cannot be used with issubclass().(R‚R=RLR.R(RR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyREÛs (RR%R(R¦RORDRE(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRßÀs R×cB@s)eZdZeZeZdZd„ZRS(u@Tuple type; Tuple[X, Y] is the cross-product type of X and Y. Example: Tuple[T1, T2] is a tuple of two elements corresponding to type variables T1 and T2. Tuple[int, float, str] is a tuple of an int, a float and a string. To specify a variable-length tuple of homogeneous type, use Tuple[T, ...]. cO@s1t|tƒrtdƒ‚ntt|||ŽS(Nu6Type Tuple cannot be instantiated; use tuple() instead(RµR×RRÞR.(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRðs(( RR%R(RßR1R.R¾R2R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR×âs t CallableMetacB@s8eZdZd„Zd„Zd„Zed„ƒZRS(u Metaclass for Callable.cC@s5|jdkr"tt|ƒjƒS|j|jƒƒS(N(RR=RRàR'R®R|(R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR'úscC@sÙt|ƒtk r(tt|ƒj|ƒSg}xQ|dD]E}t|tƒsd|jt|ƒƒq9|j|dj|ƒƒq9W|ddkr¬t |dƒd|dSt |dƒddj |d ƒ|dfS(Niiu...u [..., %s]u [[%s], %s]u, iÿÿÿÿ( RURÙRRàR®RR.RxRR[R(RR¯R°R?((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR®ÿs cC@sÑ|jdk st|tƒ r5tt|ƒj|ƒSt|tƒ sWt |ƒdkrft dƒ‚n|\}}|t krt |f}n7t|t ƒs²t d|fƒ‚nt|ƒ|f}|j |ƒS(uxA thin wrapper around __getitem_inner__ to provide the latter with hashable arguments to improve speed. iu6Callable must be used as Callable[[arg, ...], result].u8Callable[args, result]: args must be a list. Got %.100r.N(RR=RµRÙRRàRORR.R-RRYtlistt__getitem_inner__(RR“Rtresult((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyROs"  c@sŽ|\}}d‰t|ˆƒ}|tkrItt|ƒjt|fƒSd‰t‡fd†|Dƒƒ}||f}tt|ƒj|ƒS(Nu.Callable[args, result]: result must be a type.u6Callable[[arg, ...], result]: each arg must be a type.c3@s|]}t|ˆƒVqdS(N(RA(RlR?(RX(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys +s(RARYRRàRORÊR.(RR“RRã((RXs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRâ#s   (RR%R(R'R®ROR¦Râ(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRà÷s    RÙcB@s,eZdZeZejZdZd„Z RS(uCallable type; Callable[[int], str] is a function of (int) -> str. The subscription syntax must always be used with exactly two values: the argument list and the return type. The argument list must be a list of types or ellipsis; the return type must be a single type. There is no syntax to indicate optional or keyword arguments, such function types are rarely used as callback types. cO@s4t|tƒrtdƒ‚nt|j|||ŽS(NuIType Callable cannot be instantiated; use a non-abstract subclass instead(RµRÙRRÞRÌ(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR?s(( RR%R(RàR1tcollections_abcRÙR¾R2R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRÙ0s   cC@s|S(uÿCast a value to a type. This returns the value unchanged. To the type checker this signals that the return value has the designated type, but at runtime we intentionally don't check anything (we want this to be as fast as possible). ((ttyptval((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytcastFsc C@s—|j}|j}|j}|| }|jp1d}|j}|rOt|ƒni}|t|ƒ}x+t|||ƒD]\}} | || None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... In a non-stub file (i.e. a regular .py file), do the same but follow it with an implementation. The implementation should *not* be decorated with @overload. For example: @overload def utf8(value: None) -> None: ... @overload def utf8(value: bytes) -> bytes: ... @overload def utf8(value: str) -> bytes: ... def utf8(value): # implementation goes here (R(R ((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytoverload™st _ProtocolMetacB@s)eZdZd„Zd„Zd„ZRS(u~Internal metaclass for _Protocol. This exists so _Protocol classes can be generic without deriving from Generic. cC@s5t|jkr%tt|ƒj|ƒStdƒ‚dS(Nu+Protocols cannot be used with isinstance().(RWRÔRRRDR(RRC((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRD½sc@sa|js tS|tkrtS|jƒ}x1|D])‰t‡fd†|jDƒƒs0tSq0WtS(Nc3@s|]}ˆ|jkVqdS(N(RÖ(Rltd(Rü(s7/opt/alt/python27/lib/python2.7/site-packages/typing.pys Ïs(R*RfRWR4t_get_protocol_attrsR’R·R)(RRtattrs((Rüs7/opt/alt/python27/lib/python2.7/site-packages/typing.pyREÂs    cC@s…g}xB|jD]7}t|dtƒr|jdkr|j|ƒqqWtƒ}x*|D]"}x|jjƒD]}xÿ|jD]8}||k r||jkrt|dtƒ rPqqW|jdƒ rq|dkrq|dkrq|dkrq|dkrq|dkrq|dkrq|d krq|d krq|d krq|d krq|d krq|dkrq|dkrq|j |ƒqqqqWq[W|S(Nu _is_protocolu _Protocolu_abc_u__abstractmethods__u__dict__u__args__u __slots__u_get_protocol_attrsu__next_in_mro__u__parameters__u __origin__u__orig_bases__u __extra__u __tree_hash__u __module__( R·RTR)RRxRRÖtkeysR tadd(Rtprotocol_basesR¹RRRü((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRÓs6!               (RR%R(RDRER(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR¶s  RWcB@s eZdZeZdZeZRS(uÉInternal base class for protocol classes. This implements a simple-minded structural issubclass check (similar but more general than the one-offs in collections.abc such as Hashable). ((RR%R(RR1R2R4R*(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRW÷stIterablecB@seZdZejZRS(((RR%R2RäR R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR  stIteratorcB@seZdZejZRS(((RR%R2RäR R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR st SupportsIntcB@seZdZed„ƒZRS(cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__int__s((RR%R2RR (((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR st SupportsFloatcB@seZdZed„ƒZRS(cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __float__ s((RR%R2RR(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRstSupportsComplexcB@seZdZed„ƒZRS(cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __complex__(s((RR%R2RR(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR%st SupportsAbscB@seZdZed„ƒZRS(cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__abs__0s((RR%R2RR(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR-st ReversiblecB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR6scB@seZdZed„ƒZRS(cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __reversed__=s((RR%R2RR(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR:st ContainercB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyREst AbstractSetcB@seZdZejZRS(((RR%R2RätSetR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRMst MutableSetcB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRRstMappingcB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRXstMutableMappingcB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR]stSequencecB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRcscB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRgstMutableSequencecB@seZdZejZRS(((RR%R2RäRR¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRlst ByteStringcB@seZRS((RR%(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRqstListcB@seZdZeZd„ZRS(cO@s1t|tƒrtdƒ‚ntt|||ŽS(Nu4Type List cannot be instantiated; use list() instead(RµRRRÞRá(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR}s((RR%R2RáR¾R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRysRcB@seZdZeZd„ZRS(cO@s1t|tƒrtdƒ‚ntt|||ŽS(Nu2Type Set cannot be instantiated; use set() instead(RµRRRÞR(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRˆs((RR%R2RR¾R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR„st FrozenSetcB@seZdZeZd„ZRS(cO@s1t|tƒrtdƒ‚ntt|||ŽS(Nu>Type FrozenSet cannot be instantiated; use frozenset() instead(RµR RRÞR¨(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR“s((RR%R2R¨R¾R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR st MappingViewcB@seZdZejZRS(((RR%R2RäR!R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR!šstKeysViewcB@seZdZejZRS(((RR%R2RäR"R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR"Ÿst ItemsViewcB@seZdZejZRS(((RR%R2RäR#R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR#¤st ValuesViewcB@seZdZejZRS(((RR%R2RäR$R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR$«stDictcB@seZdZeZd„ZRS(cO@s1t|tƒrtdƒ‚ntt|||ŽS(Nu4Type Dict cannot be instantiated; use dict() instead(RµR%RRÞRÕ(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR´s((RR%R2RÕR¾R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR%°st DefaultDictcB@s eZdZejZd„ZRS(cO@s4t|tƒrtdƒ‚nttj|||ŽS(NuNType DefaultDict cannot be instantiated; use collections.defaultdict() instead(RµR&RRÞt collectionst defaultdict(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR¿s((RR%R2R'R(R¾R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR&»s t GeneratorcB@seZdZeZd„ZRS(cO@s1t|tƒrtdƒ‚ntt|||ŽS(Nu@Type Generator cannot be instantiated; create a subclass instead(RµR)RRÞt_G_base(RRR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRÓs((RR%R2R*R¾R(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR)ÏsuCT_coRutTypecB@seZdZdZeZRS(u¾A special construct usable to annotate class objects. For example, suppose we have the following classes:: class User: ... # Abstract base for User classes class BasicUser(User): ... class ProUser(User): ... class TeamUser(User): ... And a function that takes a class argument that's a subclass of User and returns an instance of the corresponding class:: U = TypeVar('U', bound=User) def new_user(user_class: Type[U]) -> U: user = user_class() # (Here we could write the user object to a database) return user joe = new_user(BasicUser) At this point the type checker knows that joe has type BasicUser. ((RR%R(R2R/R¾(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR+ßscC@s¢g|D]\}}||f^q}tj|g|D]\}}|^q5ƒ}t|ƒ|_y%tjdƒjjddƒ|_Wnt t fk rnX|S(u¯Typed version of namedtuple. Usage:: Employee = typing.NamedTuple('Employee', [('name', str), 'id', int)]) This is equivalent to:: Employee = collections.namedtuple('Employee', ['name', 'id']) The resulting class has one extra attribute: _field_types, giving a dict mapping field names to types. (The field names are in the _fields attribute, which is part of the namedtuple API.) iu__name__u__main__( R't namedtupleRÕt _field_typesRR»R¼RmR%RÜRn(ttypenametfieldstnRQR((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt NamedTupleús%+%cC@s%d„}t|ƒ|_||_|S(u:NewType creates simple unique types with almost zero runtime overhead. NewType(name, tp) is considered a subtype of tp by static type checkers. At runtime, NewType(name, tp) returns a dummy function that simply returns its argument. Usage:: UserId = NewType('UserId', int) def name_by_id(user_id): # type: (UserId) -> str ... UserId('user') # Fails type check name_by_id(42) # Fails type check name_by_id(UserId(42)) # OK num = UserId(5) + 1 # type: int cS@s|S(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytnew_type)s(RRt __supertype__(RR_R2((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytNewTypes  tIOcB@sOeZdZdZed„ƒZed„ƒZed„ƒZed„ƒZ ed„ƒZ ed„ƒZ ed„ƒZ edd „ƒZ ed „ƒZedd „ƒZedd „ƒZed d„ƒZed„ƒZed„ƒZedd„ƒZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZRS(uûGeneric base class for TextIO and BinaryIO. This is an abstract, generic version of the return of open(). NOTE: This does not distinguish between the different possible classes (text vs. binary, read vs. write vs. read/write, append-only, unbuffered). The TextIO and BinaryIO subclasses below capture the distinctions between text vs. binary, which is pervasive in the interface; however we currently do not offer a way to track the other distinctions in the type system. cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytmodeIscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRMscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytcloseQscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytclosedUscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytfilenoYscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytflush]scC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytisattyasiÿÿÿÿcC@sdS(N((RR0((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytreadescC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytreadableiscC@sdS(N((Rtlimit((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytreadlinemscC@sdS(N((Rthint((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt readlinesqsicC@sdS(N((Rtoffsettwhence((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytseekuscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytseekableyscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyttell}scC@sdS(N((Rtsize((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyttruncatescC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytwritable…scC@sdS(N((Rts((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytwrite‰scC@sdS(N((Rtlines((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt writelinesscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt __enter__‘scC@sdS(N((RR/Ržt traceback((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyt__exit__•s(N(RR%R(R2RR6RRR7R8R9R:R;R<R=R?RARDRERFR=RHRIRKRMRNRP(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR5:s6 tBinaryIOcB@s2eZdZdZed„ƒZed„ƒZRS(u5Typed version of the return of open() in binary mode.cC@sdS(N((RRJ((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRKŸscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRN£s((RR%R(R2RRKRN(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRQšstTextIOcB@sneZdZdZed„ƒZed„ƒZed„ƒZed„ƒZed„ƒZ e d„ƒZ RS(u3Typed version of the return of open() in text mode.cC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytbuffer­scC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytencoding±scC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyterrorsµscC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytline_buffering¹scC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytnewlines½scC@sdS(N((R((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRNÁs(( RR%R(R2RRSRTRURVRWRRN(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRR¨stiocB@s/eZdZdddgZeZeZeZRS(u)Wrapper namespace for IO generic classes.uIOuTextIOuBinaryIO(RR%R(t__all__R5RRRQ(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyRXÆs s.iouPatternucC@s|jS(N(tpattern(R•((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytÓsuMatchcC@s |jjS(N(treRZ(tm((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR[ÕsR\cB@s&eZdZddgZeZeZRS(u&Wrapper namespace for re type aliases.uPatternuMatch(RR%R(RYtPatterntMatch(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pyR\Øs s.re(t __future__RRRÅRRR'R¤R\t stdlib_reRRPtcollections.abcRät ImportErrorRYR R R/R R¶R,R3R6RFR$RRR"RARR\R]R4tClassVarRiRjtAnyRkRJtTtKTtVTtT_cotV_cotVT_cotT_contratbytestunicodetAnyStrR€R=R|R—RšR£R¦R§RRŽR±R²tOptionalRURµRºR½RÇRÆR‰RVRÞRËRÊRßR.R×RàRÙRçRóRôRúRÿRRRRWtHashableR R R RRRR{RtSizedRRRRRRRtintRtregisterRt bytearrayRáRRRR¨R R!R"R#R$RÕR%R(R&R)R*t GeneratorTypetCT_coR+R1R4tTextR)t TYPE_CHECKINGR5RQRRRXRtmodulesR8R^tmatchR_(((s7/opt/alt/python27/lib/python2.7/site-packages/typing.pytsb          )%,<      4 Y    ! )      Ê "9    A  $1 '$     !# &   *   `