_ast.py 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521
  1. # encoding: utf-8
  2. # module _ast
  3. # from (built-in)
  4. # by generator 1.147
  5. # no doc
  6. # imports
  7. import ast as __ast
  8. # Variables with simple values
  9. PyCF_ALLOW_TOP_LEVEL_AWAIT = 8192
  10. PyCF_ONLY_AST = 1024
  11. PyCF_TYPE_COMMENTS = 4096
  12. # no functions
  13. # classes
  14. class AST(object):
  15. # no doc
  16. def __delattr__(self, *args, **kwargs): # real signature unknown
  17. """ Implement delattr(self, name). """
  18. pass
  19. def __getattribute__(self, *args, **kwargs): # real signature unknown
  20. """ Return getattr(self, name). """
  21. pass
  22. def __init__(self, *args, **kwargs): # real signature unknown
  23. pass
  24. @staticmethod # known case of __new__
  25. def __new__(*args, **kwargs): # real signature unknown
  26. """ Create and return a new object. See help(type) for accurate signature. """
  27. pass
  28. def __reduce__(self, *args, **kwargs): # real signature unknown
  29. pass
  30. def __setattr__(self, *args, **kwargs): # real signature unknown
  31. """ Implement setattr(self, name, value). """
  32. pass
  33. _attributes = ()
  34. _fields = ()
  35. __dict__ = None # (!) real value is "mappingproxy({'__getattribute__': <slot wrapper '__getattribute__' of 'astfile.AST' objects>, '__setattr__': <slot wrapper '__setattr__' of 'astfile.AST' objects>, '__delattr__': <slot wrapper '__delattr__' of 'astfile.AST' objects>, '__init__': <slot wrapper '__init__' of 'astfile.AST' objects>, '__new__': <built-in method __new__ of type object at 0x115e04c20>, '__reduce__': <method '__reduce__' of 'astfile.AST' objects>, '__dict__': <attribute '__dict__' of 'astfile.AST' objects>, '__doc__': None, '__module__': 'astfile', '_fields': (), '_attributes': ()})"
  36. class operator(__ast.AST):
  37. """ operator = Add | Sub | Mult | MatMult | Div | Mod | Pow | LShift | RShift | BitOr | BitXor | BitAnd | FloorDiv """
  38. def __init__(self, *args, **kwargs): # real signature unknown
  39. pass
  40. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  41. """list of weak references to the object (if defined)"""
  42. _attributes = ()
  43. _fields = ()
  44. class Add(__ast.operator):
  45. """ Add """
  46. def __init__(self, *args, **kwargs): # real signature unknown
  47. pass
  48. _fields = ()
  49. class alias(__ast.AST):
  50. """ alias(identifier name, identifier? asname) """
  51. def __init__(self, identifier_name, identifier, *args,
  52. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  53. pass
  54. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  55. """list of weak references to the object (if defined)"""
  56. asname = None
  57. _attributes = ()
  58. _fields = (
  59. 'name',
  60. 'asname',
  61. )
  62. class boolop(__ast.AST):
  63. """ boolop = And | Or """
  64. def __init__(self, *args, **kwargs): # real signature unknown
  65. pass
  66. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  67. """list of weak references to the object (if defined)"""
  68. _attributes = ()
  69. _fields = ()
  70. class And(__ast.boolop):
  71. """ And """
  72. def __init__(self, *args, **kwargs): # real signature unknown
  73. pass
  74. _fields = ()
  75. class stmt(__ast.AST):
  76. """
  77. stmt = FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)
  78. | AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment)
  79. | ClassDef(identifier name, expr* bases, keyword* keywords, stmt* body, expr* decorator_list)
  80. | Return(expr? value)
  81. | Delete(expr* targets)
  82. | Assign(expr* targets, expr value, string? type_comment)
  83. | AugAssign(expr target, operator op, expr value)
  84. | AnnAssign(expr target, expr annotation, expr? value, int simple)
  85. | For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)
  86. | AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment)
  87. | While(expr test, stmt* body, stmt* orelse)
  88. | If(expr test, stmt* body, stmt* orelse)
  89. | With(withitem* items, stmt* body, string? type_comment)
  90. | AsyncWith(withitem* items, stmt* body, string? type_comment)
  91. | Raise(expr? exc, expr? cause)
  92. | Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody)
  93. | Assert(expr test, expr? msg)
  94. | Import(alias* names)
  95. | ImportFrom(identifier? module, alias* names, int? level)
  96. | Global(identifier* names)
  97. | Nonlocal(identifier* names)
  98. | Expr(expr value)
  99. | Pass
  100. | Break
  101. | Continue
  102. """
  103. def __init__(self, *args, **kwargs): # real signature unknown
  104. pass
  105. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  106. """list of weak references to the object (if defined)"""
  107. end_col_offset = None
  108. end_lineno = None
  109. _attributes = (
  110. 'lineno',
  111. 'col_offset',
  112. 'end_lineno',
  113. 'end_col_offset',
  114. )
  115. _fields = ()
  116. class AnnAssign(__ast.stmt):
  117. """ AnnAssign(expr target, expr annotation, expr? value, int simple) """
  118. def __init__(self, expr_target, expr_annotation, expr, *args,
  119. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  120. pass
  121. value = None
  122. _fields = (
  123. 'target',
  124. 'annotation',
  125. 'value',
  126. 'simple',
  127. )
  128. class arg(__ast.AST):
  129. """ arg(identifier arg, expr? annotation, string? type_comment) """
  130. def __init__(self, identifier_arg, expr, *args,
  131. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  132. pass
  133. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  134. """list of weak references to the object (if defined)"""
  135. annotation = None
  136. end_col_offset = None
  137. end_lineno = None
  138. type_comment = None
  139. _attributes = (
  140. 'lineno',
  141. 'col_offset',
  142. 'end_lineno',
  143. 'end_col_offset',
  144. )
  145. _fields = (
  146. 'arg',
  147. 'annotation',
  148. 'type_comment',
  149. )
  150. class arguments(__ast.AST):
  151. """ arguments(arg* posonlyargs, arg* args, arg? vararg, arg* kwonlyargs, expr* kw_defaults, arg? kwarg, expr* defaults) """
  152. def __init__(self, arg, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  153. pass
  154. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  155. """list of weak references to the object (if defined)"""
  156. kwarg = None
  157. vararg = None
  158. _attributes = ()
  159. _fields = (
  160. 'posonlyargs',
  161. 'args',
  162. 'vararg',
  163. 'kwonlyargs',
  164. 'kw_defaults',
  165. 'kwarg',
  166. 'defaults',
  167. )
  168. class Assert(__ast.stmt):
  169. """ Assert(expr test, expr? msg) """
  170. def __init__(self, expr_test, expr, *args,
  171. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  172. pass
  173. msg = None
  174. _fields = (
  175. 'test',
  176. 'msg',
  177. )
  178. class Assign(__ast.stmt):
  179. """ Assign(expr* targets, expr value, string? type_comment) """
  180. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  181. pass
  182. type_comment = None
  183. _fields = (
  184. 'targets',
  185. 'value',
  186. 'type_comment',
  187. )
  188. class AsyncFor(__ast.stmt):
  189. """ AsyncFor(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) """
  190. def __init__(self, expr_target, expr_iter, stmt, *args,
  191. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  192. pass
  193. type_comment = None
  194. _fields = (
  195. 'target',
  196. 'iter',
  197. 'body',
  198. 'orelse',
  199. 'type_comment',
  200. )
  201. class AsyncFunctionDef(__ast.stmt):
  202. """ AsyncFunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) """
  203. def __init__(self, identifier_name, arguments_args, stmt, *args,
  204. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  205. pass
  206. returns = None
  207. type_comment = None
  208. _fields = (
  209. 'name',
  210. 'args',
  211. 'body',
  212. 'decorator_list',
  213. 'returns',
  214. 'type_comment',
  215. )
  216. class AsyncWith(__ast.stmt):
  217. """ AsyncWith(withitem* items, stmt* body, string? type_comment) """
  218. def __init__(self, withitem, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  219. pass
  220. type_comment = None
  221. _fields = (
  222. 'items',
  223. 'body',
  224. 'type_comment',
  225. )
  226. class expr(__ast.AST):
  227. """
  228. expr = BoolOp(boolop op, expr* values)
  229. | NamedExpr(expr target, expr value)
  230. | BinOp(expr left, operator op, expr right)
  231. | UnaryOp(unaryop op, expr operand)
  232. | Lambda(arguments args, expr body)
  233. | IfExp(expr test, expr body, expr orelse)
  234. | Dict(expr* keys, expr* values)
  235. | Set(expr* elts)
  236. | ListComp(expr elt, comprehension* generators)
  237. | SetComp(expr elt, comprehension* generators)
  238. | DictComp(expr key, expr value, comprehension* generators)
  239. | GeneratorExp(expr elt, comprehension* generators)
  240. | Await(expr value)
  241. | Yield(expr? value)
  242. | YieldFrom(expr value)
  243. | Compare(expr left, cmpop* ops, expr* comparators)
  244. | Call(expr func, expr* args, keyword* keywords)
  245. | FormattedValue(expr value, int? conversion, expr? format_spec)
  246. | JoinedStr(expr* values)
  247. | Constant(constant value, string? kind)
  248. | Attribute(expr value, identifier attr, expr_context ctx)
  249. | Subscript(expr value, expr slice, expr_context ctx)
  250. | Starred(expr value, expr_context ctx)
  251. | Name(identifier id, expr_context ctx)
  252. | List(expr* elts, expr_context ctx)
  253. | Tuple(expr* elts, expr_context ctx)
  254. | Slice(expr? lower, expr? upper, expr? step)
  255. """
  256. def __init__(self, *args, **kwargs): # real signature unknown
  257. pass
  258. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  259. """list of weak references to the object (if defined)"""
  260. end_col_offset = None
  261. end_lineno = None
  262. _attributes = (
  263. 'lineno',
  264. 'col_offset',
  265. 'end_lineno',
  266. 'end_col_offset',
  267. )
  268. _fields = ()
  269. class Attribute(__ast.expr):
  270. """ Attribute(expr value, identifier attr, expr_context ctx) """
  271. def __init__(self, expr_value, identifier_attr, expr_context_ctx): # real signature unknown; restored from __doc__
  272. pass
  273. _fields = (
  274. 'value',
  275. 'attr',
  276. 'ctx',
  277. )
  278. class AugAssign(__ast.stmt):
  279. """ AugAssign(expr target, operator op, expr value) """
  280. def __init__(self, expr_target, operator_op, expr_value): # real signature unknown; restored from __doc__
  281. pass
  282. _fields = (
  283. 'target',
  284. 'op',
  285. 'value',
  286. )
  287. class Await(__ast.expr):
  288. """ Await(expr value) """
  289. def __init__(self, expr_value): # real signature unknown; restored from __doc__
  290. pass
  291. _fields = (
  292. 'value',
  293. )
  294. class BinOp(__ast.expr):
  295. """ BinOp(expr left, operator op, expr right) """
  296. def __init__(self, expr_left, operator_op, expr_right): # real signature unknown; restored from __doc__
  297. pass
  298. _fields = (
  299. 'left',
  300. 'op',
  301. 'right',
  302. )
  303. class BitAnd(__ast.operator):
  304. """ BitAnd """
  305. def __init__(self, *args, **kwargs): # real signature unknown
  306. pass
  307. _fields = ()
  308. class BitOr(__ast.operator):
  309. """ BitOr """
  310. def __init__(self, *args, **kwargs): # real signature unknown
  311. pass
  312. _fields = ()
  313. class BitXor(__ast.operator):
  314. """ BitXor """
  315. def __init__(self, *args, **kwargs): # real signature unknown
  316. pass
  317. _fields = ()
  318. class BoolOp(__ast.expr):
  319. """ BoolOp(boolop op, expr* values) """
  320. def __init__(self, boolop_op, expr, *args,
  321. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  322. pass
  323. _fields = (
  324. 'op',
  325. 'values',
  326. )
  327. class Break(__ast.stmt):
  328. """ Break """
  329. def __init__(self, *args, **kwargs): # real signature unknown
  330. pass
  331. _fields = ()
  332. class Call(__ast.expr):
  333. """ Call(expr func, expr* args, keyword* keywords) """
  334. def __init__(self, expr_func, expr, *args,
  335. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  336. pass
  337. _fields = (
  338. 'func',
  339. 'args',
  340. 'keywords',
  341. )
  342. class ClassDef(__ast.stmt):
  343. """ ClassDef(identifier name, expr* bases, keyword* keywords, stmt* body, expr* decorator_list) """
  344. def __init__(self, identifier_name, expr, *args,
  345. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  346. pass
  347. _fields = (
  348. 'name',
  349. 'bases',
  350. 'keywords',
  351. 'body',
  352. 'decorator_list',
  353. )
  354. class cmpop(__ast.AST):
  355. """ cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | Is | IsNot | In | NotIn """
  356. def __init__(self, *args, **kwargs): # real signature unknown
  357. pass
  358. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  359. """list of weak references to the object (if defined)"""
  360. _attributes = ()
  361. _fields = ()
  362. class Compare(__ast.expr):
  363. """ Compare(expr left, cmpop* ops, expr* comparators) """
  364. def __init__(self, expr_left, cmpop, *args,
  365. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  366. pass
  367. _fields = (
  368. 'left',
  369. 'ops',
  370. 'comparators',
  371. )
  372. class comprehension(__ast.AST):
  373. """ comprehension(expr target, expr iter, expr* ifs, int is_async) """
  374. def __init__(self, expr_target, expr_iter, expr, *args,
  375. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  376. pass
  377. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  378. """list of weak references to the object (if defined)"""
  379. _attributes = ()
  380. _fields = (
  381. 'target',
  382. 'iter',
  383. 'ifs',
  384. 'is_async',
  385. )
  386. class Constant(__ast.expr):
  387. """ Constant(constant value, string? kind) """
  388. def __init__(self, constant_value, string, *args,
  389. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  390. pass
  391. n = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  392. """Deprecated. Use value instead."""
  393. s = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  394. """Deprecated. Use value instead."""
  395. kind = None
  396. _fields = (
  397. 'value',
  398. 'kind',
  399. )
  400. class Continue(__ast.stmt):
  401. """ Continue """
  402. def __init__(self, *args, **kwargs): # real signature unknown
  403. pass
  404. _fields = ()
  405. class expr_context(__ast.AST):
  406. """ expr_context = Load | Store | Del """
  407. def __init__(self, *args, **kwargs): # real signature unknown
  408. pass
  409. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  410. """list of weak references to the object (if defined)"""
  411. _attributes = ()
  412. _fields = ()
  413. class Del(__ast.expr_context):
  414. """ Del """
  415. def __init__(self, *args, **kwargs): # real signature unknown
  416. pass
  417. _fields = ()
  418. class Delete(__ast.stmt):
  419. """ Delete(expr* targets) """
  420. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  421. pass
  422. _fields = (
  423. 'targets',
  424. )
  425. class Dict(__ast.expr):
  426. """ Dict(expr* keys, expr* values) """
  427. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  428. pass
  429. _fields = (
  430. 'keys',
  431. 'values',
  432. )
  433. class DictComp(__ast.expr):
  434. """ DictComp(expr key, expr value, comprehension* generators) """
  435. def __init__(self, expr_key, expr_value, comprehension, *args,
  436. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  437. pass
  438. _fields = (
  439. 'key',
  440. 'value',
  441. 'generators',
  442. )
  443. class Div(__ast.operator):
  444. """ Div """
  445. def __init__(self, *args, **kwargs): # real signature unknown
  446. pass
  447. _fields = ()
  448. class Eq(__ast.cmpop):
  449. """ Eq """
  450. def __init__(self, *args, **kwargs): # real signature unknown
  451. pass
  452. _fields = ()
  453. class excepthandler(__ast.AST):
  454. """ excepthandler = ExceptHandler(expr? type, identifier? name, stmt* body) """
  455. def __init__(self, *args, **kwargs): # real signature unknown
  456. pass
  457. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  458. """list of weak references to the object (if defined)"""
  459. end_col_offset = None
  460. end_lineno = None
  461. _attributes = (
  462. 'lineno',
  463. 'col_offset',
  464. 'end_lineno',
  465. 'end_col_offset',
  466. )
  467. _fields = ()
  468. class ExceptHandler(__ast.excepthandler):
  469. """ ExceptHandler(expr? type, identifier? name, stmt* body) """
  470. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  471. pass
  472. name = None
  473. type = None
  474. _fields = (
  475. 'type',
  476. 'name',
  477. 'body',
  478. )
  479. class Expr(__ast.stmt):
  480. """ Expr(expr value) """
  481. def __init__(self, expr_value): # real signature unknown; restored from __doc__
  482. pass
  483. _fields = (
  484. 'value',
  485. )
  486. class mod(__ast.AST):
  487. """
  488. mod = Module(stmt* body, type_ignore* type_ignores)
  489. | Interactive(stmt* body)
  490. | Expression(expr body)
  491. | FunctionType(expr* argtypes, expr returns)
  492. """
  493. def __init__(self, *args, **kwargs): # real signature unknown
  494. pass
  495. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  496. """list of weak references to the object (if defined)"""
  497. _attributes = ()
  498. _fields = ()
  499. class Expression(__ast.mod):
  500. """ Expression(expr body) """
  501. def __init__(self, expr_body): # real signature unknown; restored from __doc__
  502. pass
  503. _fields = (
  504. 'body',
  505. )
  506. class FloorDiv(__ast.operator):
  507. """ FloorDiv """
  508. def __init__(self, *args, **kwargs): # real signature unknown
  509. pass
  510. _fields = ()
  511. class For(__ast.stmt):
  512. """ For(expr target, expr iter, stmt* body, stmt* orelse, string? type_comment) """
  513. def __init__(self, expr_target, expr_iter, stmt, *args,
  514. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  515. pass
  516. type_comment = None
  517. _fields = (
  518. 'target',
  519. 'iter',
  520. 'body',
  521. 'orelse',
  522. 'type_comment',
  523. )
  524. class FormattedValue(__ast.expr):
  525. """ FormattedValue(expr value, int? conversion, expr? format_spec) """
  526. def __init__(self, expr_value, p_int, *args,
  527. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  528. pass
  529. conversion = None
  530. format_spec = None
  531. _fields = (
  532. 'value',
  533. 'conversion',
  534. 'format_spec',
  535. )
  536. class FunctionDef(__ast.stmt):
  537. """ FunctionDef(identifier name, arguments args, stmt* body, expr* decorator_list, expr? returns, string? type_comment) """
  538. def __init__(self, identifier_name, arguments_args, stmt, *args,
  539. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  540. pass
  541. returns = None
  542. type_comment = None
  543. _fields = (
  544. 'name',
  545. 'args',
  546. 'body',
  547. 'decorator_list',
  548. 'returns',
  549. 'type_comment',
  550. )
  551. class FunctionType(__ast.mod):
  552. """ FunctionType(expr* argtypes, expr returns) """
  553. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  554. pass
  555. _fields = (
  556. 'argtypes',
  557. 'returns',
  558. )
  559. class GeneratorExp(__ast.expr):
  560. """ GeneratorExp(expr elt, comprehension* generators) """
  561. def __init__(self, expr_elt, comprehension, *args,
  562. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  563. pass
  564. _fields = (
  565. 'elt',
  566. 'generators',
  567. )
  568. class Global(__ast.stmt):
  569. """ Global(identifier* names) """
  570. def __init__(self, identifier, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  571. pass
  572. _fields = (
  573. 'names',
  574. )
  575. class Gt(__ast.cmpop):
  576. """ Gt """
  577. def __init__(self, *args, **kwargs): # real signature unknown
  578. pass
  579. _fields = ()
  580. class GtE(__ast.cmpop):
  581. """ GtE """
  582. def __init__(self, *args, **kwargs): # real signature unknown
  583. pass
  584. _fields = ()
  585. class If(__ast.stmt):
  586. """ If(expr test, stmt* body, stmt* orelse) """
  587. def __init__(self, expr_test, stmt, *args,
  588. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  589. pass
  590. _fields = (
  591. 'test',
  592. 'body',
  593. 'orelse',
  594. )
  595. class IfExp(__ast.expr):
  596. """ IfExp(expr test, expr body, expr orelse) """
  597. def __init__(self, expr_test, expr_body, expr_orelse): # real signature unknown; restored from __doc__
  598. pass
  599. _fields = (
  600. 'test',
  601. 'body',
  602. 'orelse',
  603. )
  604. class Import(__ast.stmt):
  605. """ Import(alias* names) """
  606. def __init__(self, alias, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  607. pass
  608. _fields = (
  609. 'names',
  610. )
  611. class ImportFrom(__ast.stmt):
  612. """ ImportFrom(identifier? module, alias* names, int? level) """
  613. def __init__(self, identifier, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  614. pass
  615. level = None
  616. module = None
  617. _fields = (
  618. 'module',
  619. 'names',
  620. 'level',
  621. )
  622. class In(__ast.cmpop):
  623. """ In """
  624. def __init__(self, *args, **kwargs): # real signature unknown
  625. pass
  626. _fields = ()
  627. class Interactive(__ast.mod):
  628. """ Interactive(stmt* body) """
  629. def __init__(self, stmt, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  630. pass
  631. _fields = (
  632. 'body',
  633. )
  634. class unaryop(__ast.AST):
  635. """ unaryop = Invert | Not | UAdd | USub """
  636. def __init__(self, *args, **kwargs): # real signature unknown
  637. pass
  638. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  639. """list of weak references to the object (if defined)"""
  640. _attributes = ()
  641. _fields = ()
  642. class Invert(__ast.unaryop):
  643. """ Invert """
  644. def __init__(self, *args, **kwargs): # real signature unknown
  645. pass
  646. _fields = ()
  647. class Is(__ast.cmpop):
  648. """ Is """
  649. def __init__(self, *args, **kwargs): # real signature unknown
  650. pass
  651. _fields = ()
  652. class IsNot(__ast.cmpop):
  653. """ IsNot """
  654. def __init__(self, *args, **kwargs): # real signature unknown
  655. pass
  656. _fields = ()
  657. class JoinedStr(__ast.expr):
  658. """ JoinedStr(expr* values) """
  659. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  660. pass
  661. _fields = (
  662. 'values',
  663. )
  664. class keyword(__ast.AST):
  665. """ keyword(identifier? arg, expr value) """
  666. def __init__(self, identifier, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  667. pass
  668. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  669. """list of weak references to the object (if defined)"""
  670. arg = None
  671. end_col_offset = None
  672. end_lineno = None
  673. _attributes = (
  674. 'lineno',
  675. 'col_offset',
  676. 'end_lineno',
  677. 'end_col_offset',
  678. )
  679. _fields = (
  680. 'arg',
  681. 'value',
  682. )
  683. class Lambda(__ast.expr):
  684. """ Lambda(arguments args, expr body) """
  685. def __init__(self, arguments_args, expr_body): # real signature unknown; restored from __doc__
  686. pass
  687. _fields = (
  688. 'args',
  689. 'body',
  690. )
  691. class List(__ast.expr):
  692. """ List(expr* elts, expr_context ctx) """
  693. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  694. pass
  695. _fields = (
  696. 'elts',
  697. 'ctx',
  698. )
  699. class ListComp(__ast.expr):
  700. """ ListComp(expr elt, comprehension* generators) """
  701. def __init__(self, expr_elt, comprehension, *args,
  702. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  703. pass
  704. _fields = (
  705. 'elt',
  706. 'generators',
  707. )
  708. class Load(__ast.expr_context):
  709. """ Load """
  710. def __init__(self, *args, **kwargs): # real signature unknown
  711. pass
  712. _fields = ()
  713. class LShift(__ast.operator):
  714. """ LShift """
  715. def __init__(self, *args, **kwargs): # real signature unknown
  716. pass
  717. _fields = ()
  718. class Lt(__ast.cmpop):
  719. """ Lt """
  720. def __init__(self, *args, **kwargs): # real signature unknown
  721. pass
  722. _fields = ()
  723. class LtE(__ast.cmpop):
  724. """ LtE """
  725. def __init__(self, *args, **kwargs): # real signature unknown
  726. pass
  727. _fields = ()
  728. class MatMult(__ast.operator):
  729. """ MatMult """
  730. def __init__(self, *args, **kwargs): # real signature unknown
  731. pass
  732. _fields = ()
  733. class Mod(__ast.operator):
  734. """ Mod """
  735. def __init__(self, *args, **kwargs): # real signature unknown
  736. pass
  737. _fields = ()
  738. class Module(__ast.mod):
  739. """ Module(stmt* body, type_ignore* type_ignores) """
  740. def __init__(self, stmt, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  741. pass
  742. _fields = (
  743. 'body',
  744. 'type_ignores',
  745. )
  746. class Mult(__ast.operator):
  747. """ Mult """
  748. def __init__(self, *args, **kwargs): # real signature unknown
  749. pass
  750. _fields = ()
  751. class Name(__ast.expr):
  752. """ Name(identifier id, expr_context ctx) """
  753. def __init__(self, identifier_id, expr_context_ctx): # real signature unknown; restored from __doc__
  754. pass
  755. _fields = (
  756. 'id',
  757. 'ctx',
  758. )
  759. class NamedExpr(__ast.expr):
  760. """ NamedExpr(expr target, expr value) """
  761. def __init__(self, expr_target, expr_value): # real signature unknown; restored from __doc__
  762. pass
  763. _fields = (
  764. 'target',
  765. 'value',
  766. )
  767. class Nonlocal(__ast.stmt):
  768. """ Nonlocal(identifier* names) """
  769. def __init__(self, identifier, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  770. pass
  771. _fields = (
  772. 'names',
  773. )
  774. class Not(__ast.unaryop):
  775. """ Not """
  776. def __init__(self, *args, **kwargs): # real signature unknown
  777. pass
  778. _fields = ()
  779. class NotEq(__ast.cmpop):
  780. """ NotEq """
  781. def __init__(self, *args, **kwargs): # real signature unknown
  782. pass
  783. _fields = ()
  784. class NotIn(__ast.cmpop):
  785. """ NotIn """
  786. def __init__(self, *args, **kwargs): # real signature unknown
  787. pass
  788. _fields = ()
  789. class Or(__ast.boolop):
  790. """ Or """
  791. def __init__(self, *args, **kwargs): # real signature unknown
  792. pass
  793. _fields = ()
  794. class Pass(__ast.stmt):
  795. """ Pass """
  796. def __init__(self, *args, **kwargs): # real signature unknown
  797. pass
  798. _fields = ()
  799. class Pow(__ast.operator):
  800. """ Pow """
  801. def __init__(self, *args, **kwargs): # real signature unknown
  802. pass
  803. _fields = ()
  804. class Raise(__ast.stmt):
  805. """ Raise(expr? exc, expr? cause) """
  806. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  807. pass
  808. cause = None
  809. exc = None
  810. _fields = (
  811. 'exc',
  812. 'cause',
  813. )
  814. class Return(__ast.stmt):
  815. """ Return(expr? value) """
  816. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  817. pass
  818. value = None
  819. _fields = (
  820. 'value',
  821. )
  822. class RShift(__ast.operator):
  823. """ RShift """
  824. def __init__(self, *args, **kwargs): # real signature unknown
  825. pass
  826. _fields = ()
  827. class Set(__ast.expr):
  828. """ Set(expr* elts) """
  829. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  830. pass
  831. _fields = (
  832. 'elts',
  833. )
  834. class SetComp(__ast.expr):
  835. """ SetComp(expr elt, comprehension* generators) """
  836. def __init__(self, expr_elt, comprehension, *args,
  837. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  838. pass
  839. _fields = (
  840. 'elt',
  841. 'generators',
  842. )
  843. class Slice(__ast.expr):
  844. """ Slice(expr? lower, expr? upper, expr? step) """
  845. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  846. pass
  847. lower = None
  848. step = None
  849. upper = None
  850. _fields = (
  851. 'lower',
  852. 'upper',
  853. 'step',
  854. )
  855. class Starred(__ast.expr):
  856. """ Starred(expr value, expr_context ctx) """
  857. def __init__(self, expr_value, expr_context_ctx): # real signature unknown; restored from __doc__
  858. pass
  859. _fields = (
  860. 'value',
  861. 'ctx',
  862. )
  863. class Store(__ast.expr_context):
  864. """ Store """
  865. def __init__(self, *args, **kwargs): # real signature unknown
  866. pass
  867. _fields = ()
  868. class Sub(__ast.operator):
  869. """ Sub """
  870. def __init__(self, *args, **kwargs): # real signature unknown
  871. pass
  872. _fields = ()
  873. class Subscript(__ast.expr):
  874. """ Subscript(expr value, expr slice, expr_context ctx) """
  875. def __init__(self, expr_value, expr_slice, expr_context_ctx): # real signature unknown; restored from __doc__
  876. pass
  877. _fields = (
  878. 'value',
  879. 'slice',
  880. 'ctx',
  881. )
  882. class Try(__ast.stmt):
  883. """ Try(stmt* body, excepthandler* handlers, stmt* orelse, stmt* finalbody) """
  884. def __init__(self, stmt, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  885. pass
  886. _fields = (
  887. 'body',
  888. 'handlers',
  889. 'orelse',
  890. 'finalbody',
  891. )
  892. class Tuple(__ast.expr):
  893. """ Tuple(expr* elts, expr_context ctx) """
  894. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  895. pass
  896. dims = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  897. """Deprecated. Use elts instead."""
  898. _fields = (
  899. 'elts',
  900. 'ctx',
  901. )
  902. class type_ignore(__ast.AST):
  903. """ type_ignore = TypeIgnore(int lineno, string tag) """
  904. def __init__(self, *args, **kwargs): # real signature unknown
  905. pass
  906. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  907. """list of weak references to the object (if defined)"""
  908. _attributes = ()
  909. _fields = ()
  910. class TypeIgnore(__ast.type_ignore):
  911. """ TypeIgnore(int lineno, string tag) """
  912. def __init__(self, int_lineno, string_tag): # real signature unknown; restored from __doc__
  913. pass
  914. _fields = (
  915. 'lineno',
  916. 'tag',
  917. )
  918. class UAdd(__ast.unaryop):
  919. """ UAdd """
  920. def __init__(self, *args, **kwargs): # real signature unknown
  921. pass
  922. _fields = ()
  923. class UnaryOp(__ast.expr):
  924. """ UnaryOp(unaryop op, expr operand) """
  925. def __init__(self, unaryop_op, expr_operand): # real signature unknown; restored from __doc__
  926. pass
  927. _fields = (
  928. 'op',
  929. 'operand',
  930. )
  931. class USub(__ast.unaryop):
  932. """ USub """
  933. def __init__(self, *args, **kwargs): # real signature unknown
  934. pass
  935. _fields = ()
  936. class While(__ast.stmt):
  937. """ While(expr test, stmt* body, stmt* orelse) """
  938. def __init__(self, expr_test, stmt, *args,
  939. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  940. pass
  941. _fields = (
  942. 'test',
  943. 'body',
  944. 'orelse',
  945. )
  946. class With(__ast.stmt):
  947. """ With(withitem* items, stmt* body, string? type_comment) """
  948. def __init__(self, withitem, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  949. pass
  950. type_comment = None
  951. _fields = (
  952. 'items',
  953. 'body',
  954. 'type_comment',
  955. )
  956. class withitem(__ast.AST):
  957. """ withitem(expr context_expr, expr? optional_vars) """
  958. def __init__(self, expr_context_expr, expr, *args,
  959. **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  960. pass
  961. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  962. """list of weak references to the object (if defined)"""
  963. optional_vars = None
  964. _attributes = ()
  965. _fields = (
  966. 'context_expr',
  967. 'optional_vars',
  968. )
  969. class Yield(__ast.expr):
  970. """ Yield(expr? value) """
  971. def __init__(self, expr, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__
  972. pass
  973. value = None
  974. _fields = (
  975. 'value',
  976. )
  977. class YieldFrom(__ast.expr):
  978. """ YieldFrom(expr value) """
  979. def __init__(self, expr_value): # real signature unknown; restored from __doc__
  980. pass
  981. _fields = (
  982. 'value',
  983. )
  984. class __loader__(object):
  985. """
  986. Meta path import for built-in modules.
  987. All methods are either class or static methods to avoid the need to
  988. instantiate the class.
  989. """
  990. @classmethod
  991. def create_module(cls, *args, **kwargs): # real signature unknown
  992. """ Create a built-in module """
  993. pass
  994. @classmethod
  995. def exec_module(cls, *args, **kwargs): # real signature unknown
  996. """ Exec a built-in module """
  997. pass
  998. @classmethod
  999. def find_module(cls, *args, **kwargs): # real signature unknown
  1000. """
  1001. Find the built-in module.
  1002. If 'path' is ever specified then the search is considered a failure.
  1003. This method is deprecated. Use find_spec() instead.
  1004. """
  1005. pass
  1006. @classmethod
  1007. def find_spec(cls, *args, **kwargs): # real signature unknown
  1008. pass
  1009. @classmethod
  1010. def get_code(cls, *args, **kwargs): # real signature unknown
  1011. """ Return None as built-in modules do not have code objects. """
  1012. pass
  1013. @classmethod
  1014. def get_source(cls, *args, **kwargs): # real signature unknown
  1015. """ Return None as built-in modules do not have source code. """
  1016. pass
  1017. @classmethod
  1018. def is_package(cls, *args, **kwargs): # real signature unknown
  1019. """ Return False as built-in modules are never packages. """
  1020. pass
  1021. @classmethod
  1022. def load_module(cls, *args, **kwargs): # real signature unknown
  1023. """
  1024. Load the specified module into sys.modules and return it.
  1025. This method is deprecated. Use loader.exec_module instead.
  1026. """
  1027. pass
  1028. def module_repr(module): # reliably restored by inspect
  1029. """
  1030. Return repr for the module.
  1031. The method is deprecated. The import machinery does the job itself.
  1032. """
  1033. pass
  1034. def __init__(self, *args, **kwargs): # real signature unknown
  1035. pass
  1036. __weakref__ = property(lambda self: object(), lambda self, v: None, lambda self: None) # default
  1037. """list of weak references to the object (if defined)"""
  1038. _ORIGIN = 'built-in'
  1039. __dict__ = None # (!) real value is "mappingproxy({'__module__': '_frozen_importlib', '__doc__': 'Meta path import for built-in modules.\\n\\n All methods are either class or static methods to avoid the need to\\n instantiate the class.\\n\\n ', '_ORIGIN': 'built-in', 'module_repr': <staticmethod object at 0x103298430>, 'find_spec': <classmethod object at 0x103298460>, 'find_module': <classmethod object at 0x103298490>, 'create_module': <classmethod object at 0x1032984c0>, 'exec_module': <classmethod object at 0x1032984f0>, 'get_code': <classmethod object at 0x103298580>, 'get_source': <classmethod object at 0x103298610>, 'is_package': <classmethod object at 0x1032986a0>, 'load_module': <classmethod object at 0x1032986d0>, '__dict__': <attribute '__dict__' of 'BuiltinImporter' objects>, '__weakref__': <attribute '__weakref__' of 'BuiltinImporter' objects>})"
  1040. # variables with complex values
  1041. __spec__ = None # (!) real value is "ModuleSpec(name='_ast', loader=<class '_frozen_importlib.BuiltinImporter'>, origin='built-in')"