mapFolding 0.10.0__py3-none-any.whl → 0.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mapFolding/__init__.py +29 -27
- mapFolding/someAssemblyRequired/Z0Z_makeSomeModules.py +4 -6
- mapFolding/someAssemblyRequired/__init__.py +15 -24
- mapFolding/someAssemblyRequired/_toolIfThis.py +4 -144
- mapFolding/someAssemblyRequired/_toolboxContainers.py +12 -284
- mapFolding/someAssemblyRequired/makeJobTheorem2Numba.py +6 -6
- mapFolding/someAssemblyRequired/synthesizeNumbaJob.py +5 -5
- mapFolding/someAssemblyRequired/transformationTools.py +5 -178
- {mapfolding-0.10.0.dist-info → mapfolding-0.11.0.dist-info}/METADATA +2 -1
- {mapfolding-0.10.0.dist-info → mapfolding-0.11.0.dist-info}/RECORD +14 -26
- {mapfolding-0.10.0.dist-info → mapfolding-0.11.0.dist-info}/WHEEL +1 -1
- mapFolding/someAssemblyRequired/_astTypes.py +0 -117
- mapFolding/someAssemblyRequired/_theTypes.py +0 -34
- mapFolding/someAssemblyRequired/_toolBe.py +0 -524
- mapFolding/someAssemblyRequired/_toolDOT.py +0 -493
- mapFolding/someAssemblyRequired/_toolGrab.py +0 -653
- mapFolding/someAssemblyRequired/_toolMake.py +0 -339
- mapFolding/someAssemblyRequired/_toolThen.py +0 -63
- mapFolding/someAssemblyRequired/_toolboxAST.py +0 -57
- mapFolding/someAssemblyRequired/_toolboxPython.py +0 -188
- mapFolding/toolFactory/astFactory.py +0 -493
- mapFolding/toolFactory/astFactory_annex.py +0 -63
- mapFolding/toolFactory/astFactory_docstrings.py +0 -63
- {mapfolding-0.10.0.dist-info → mapfolding-0.11.0.dist-info}/entry_points.txt +0 -0
- {mapfolding-0.10.0.dist-info → mapfolding-0.11.0.dist-info}/licenses/LICENSE +0 -0
- {mapfolding-0.10.0.dist-info → mapfolding-0.11.0.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
mapFolding/__init__.py,sha256=
|
|
1
|
+
mapFolding/__init__.py,sha256=B_Z9mhM5c_ro4rDOkIGADeg7tec8dkuY5UDp0JjjR4M,5456
|
|
2
2
|
mapFolding/basecamp.py,sha256=hs7hlTmbX7KTjI_eIRVU4xn7HR4l448SIpHk1cKDwRk,8071
|
|
3
3
|
mapFolding/beDRY.py,sha256=JQ7T9v4aKzweGjvpzyghyq4N9l3Wf9HZco_K_DWoiW0,15368
|
|
4
4
|
mapFolding/daoOfMapFolding.py,sha256=ncTIiBfTsM8SNVx9qefZ0bBcBtviWLSk4iPv3Z9nGiE,5442
|
|
@@ -22,24 +22,15 @@ mapFolding/reference/jobsCompleted/__init__.py,sha256=TU93ZGUW1xEkT6d9mQFn_rp5Dv
|
|
|
22
22
|
mapFolding/reference/jobsCompleted/[2x19]/p2x19.py,sha256=_tvYtfzMWVo2VtUbIAieoscb4N8FFflgTdW4-ljBUuA,19626
|
|
23
23
|
mapFolding/reference/jobsCompleted/p2x19/p2x19.py,sha256=eZEw4Me4ocTt6VXoK2-Sbd5SowZtxRIbN9dZmc7OCVg,6395
|
|
24
24
|
mapFolding/someAssemblyRequired/RecipeJob.py,sha256=6RD4F4Yde7K-Rz0F4IokQ62BVzRSx4vCCYY4H-Dfug4,10190
|
|
25
|
-
mapFolding/someAssemblyRequired/Z0Z_makeSomeModules.py,sha256=
|
|
26
|
-
mapFolding/someAssemblyRequired/__init__.py,sha256=
|
|
27
|
-
mapFolding/someAssemblyRequired/
|
|
28
|
-
mapFolding/someAssemblyRequired/
|
|
29
|
-
mapFolding/someAssemblyRequired/_toolBe.py,sha256=bT64xwj_lGJZZB6FyY46alFZENZ2LlJdb2kO47L643Q,16400
|
|
30
|
-
mapFolding/someAssemblyRequired/_toolDOT.py,sha256=JpEpW0mZRFFYzlIhQQtD15rKSzEESXfzX6i0aH95YK0,12727
|
|
31
|
-
mapFolding/someAssemblyRequired/_toolGrab.py,sha256=oMrTMVky5BIEo9GEXA3AVlElGtPd10gIR6jIEWWsFV8,25327
|
|
32
|
-
mapFolding/someAssemblyRequired/_toolIfThis.py,sha256=DsvXHvi27YGC8TZMm6WlV6YsK0ruVPVPQRip0wrpvlk,10223
|
|
33
|
-
mapFolding/someAssemblyRequired/_toolMake.py,sha256=X54TBZysYEcVOmtBSTZoW80kmJJS-yYFwRvN_19uU_8,18282
|
|
34
|
-
mapFolding/someAssemblyRequired/_toolThen.py,sha256=RFp1h8FQroBIR3F-TtXJo3j7wS_XKFAvLWly93PkZiE,2584
|
|
35
|
-
mapFolding/someAssemblyRequired/_toolboxAST.py,sha256=-hlKH0gYCY4Srx1azL8SK2RLbYYRw0a0i3qaYcnx8L0,2376
|
|
36
|
-
mapFolding/someAssemblyRequired/_toolboxContainers.py,sha256=5Y9-X-SyCkrxpn164PICvcimPE89Tgcnksm7N5wqOnU,30117
|
|
37
|
-
mapFolding/someAssemblyRequired/_toolboxPython.py,sha256=1K7IzqzmHNTaPA6qTo73GZYHCIQRYI2Rn8aYJ3VelqY,7873
|
|
25
|
+
mapFolding/someAssemblyRequired/Z0Z_makeSomeModules.py,sha256=Zx79EU4FTvnquAJMHr_rY1mzsyBsHEaeuu0LHRIFFSc,15804
|
|
26
|
+
mapFolding/someAssemblyRequired/__init__.py,sha256=GpYUilSfkAfITY-yJ2najnIlDGY4w0m706wrrOlhDmE,3397
|
|
27
|
+
mapFolding/someAssemblyRequired/_toolIfThis.py,sha256=IoCmO4vs4ElMPW7_ToPhWWnywCCzy0WZTSjcGD4kxZQ,2809
|
|
28
|
+
mapFolding/someAssemblyRequired/_toolboxContainers.py,sha256=83unP2rX8kJ_xSnPcZ3bJ8eanNQHwy0jLb9OP3cz5Gw,15872
|
|
38
29
|
mapFolding/someAssemblyRequired/getLLVMforNoReason.py,sha256=9RPU6vK_eUg64GtVFI_nZnvUryXw8gfHJs9NyDYHIvg,2745
|
|
39
|
-
mapFolding/someAssemblyRequired/makeJobTheorem2Numba.py,sha256=
|
|
40
|
-
mapFolding/someAssemblyRequired/synthesizeNumbaJob.py,sha256=
|
|
30
|
+
mapFolding/someAssemblyRequired/makeJobTheorem2Numba.py,sha256=7lF-5XLWrxbIukSClkkzjeSl8xBaot9Hg_4QrQ3UNe4,13846
|
|
31
|
+
mapFolding/someAssemblyRequired/synthesizeNumbaJob.py,sha256=nnTBe9XBFCNYKw-m_ZLAqfjHI9YEgAYx0rcUbihmG1Q,15667
|
|
41
32
|
mapFolding/someAssemblyRequired/toolboxNumba.py,sha256=QIpYCf1IFfgrQ5GVA0ON0ymn324iBfkyHVSfBW5CqOY,8961
|
|
42
|
-
mapFolding/someAssemblyRequired/transformationTools.py,sha256=
|
|
33
|
+
mapFolding/someAssemblyRequired/transformationTools.py,sha256=snv0RB2Lfp50hIDL6BL7RVg3_gPkpQ2PPZF7-ldS7fI,20414
|
|
43
34
|
mapFolding/syntheticModules/__init__.py,sha256=evVFqhCGa-WZKDiLcnQWjs-Bj34eRnfSLqz_d7dFYZY,83
|
|
44
35
|
mapFolding/syntheticModules/daoOfMapFolding.py,sha256=cfWPABtXyCxJ0BwPI7rhfLh_2UYV_XKAL8lJ4GLNXaQ,5896
|
|
45
36
|
mapFolding/syntheticModules/dataPacking.py,sha256=J4WLJzQTOAm2d8itzWWSixTUcCGQl4KuEfqrzkb2tJQ,2294
|
|
@@ -48,10 +39,7 @@ mapFolding/syntheticModules/numbaCount.py,sha256=zM-bp07c9tEDdvidwzZ_bJTd0JC0VUk
|
|
|
48
39
|
mapFolding/syntheticModules/theorem2.py,sha256=9jrbZNNX4BWYZW1S0JjvRY2k7RU7I1RNUMV7JdCt1ZY,3017
|
|
49
40
|
mapFolding/syntheticModules/theorem2Numba.py,sha256=-cKjNyxgUMFhEyFVs0VJ7hw4LfrV0WSNK5tPYbQ1oNU,3369
|
|
50
41
|
mapFolding/syntheticModules/theorem2Trimmed.py,sha256=DHW3NxBdtABQYBKm2WRvfQ5kzc2_UwGI2h4ePuYEJoM,2685
|
|
51
|
-
|
|
52
|
-
mapFolding/toolFactory/astFactory_annex.py,sha256=pTULZ8bJ4ioojK2VQ2636rvlHflT0GbSeHYjm2kooqE,5948
|
|
53
|
-
mapFolding/toolFactory/astFactory_docstrings.py,sha256=aX2JR5cXMe2znIrvWxLeK74jQebMWwGX4U0sk-iexWQ,3406
|
|
54
|
-
mapfolding-0.10.0.dist-info/licenses/LICENSE,sha256=NxH5Y8BdC-gNU-WSMwim3uMbID2iNDXJz7fHtuTdXhk,19346
|
|
42
|
+
mapfolding-0.11.0.dist-info/licenses/LICENSE,sha256=NxH5Y8BdC-gNU-WSMwim3uMbID2iNDXJz7fHtuTdXhk,19346
|
|
55
43
|
tests/__init__.py,sha256=5VhHf0JJ2_DSh58zJ0rR5UkpoCon-0IkdljspTCzZ04,1950
|
|
56
44
|
tests/conftest.py,sha256=x8zMZQyTss3sn0GwHm_TSRwD9_LVlR8l_qF8r43Vxl4,14178
|
|
57
45
|
tests/test_computations.py,sha256=5sg1PpSp6aeOrXZeO5NwWK5ipPAe49wVKC2J7yT5MFg,6524
|
|
@@ -59,8 +47,8 @@ tests/test_filesystem.py,sha256=T2DkjBoI3lW6tCxd5BilPmUFrVukNKLjOOZVZxLM560,3004
|
|
|
59
47
|
tests/test_oeis.py,sha256=uxvwmgbnylSDdsVJfuAT0LuYLbIVFwSgdLxHm-xUGBM,5043
|
|
60
48
|
tests/test_other.py,sha256=UMlK4JPInalpOZuPvTnUrgXWCJOxAw-OsPs6CxMR254,3753
|
|
61
49
|
tests/test_tasks.py,sha256=tOQc4uomKXGwWnENfbcThaVa1XofwXNCkGZbg4yS6VI,2833
|
|
62
|
-
mapfolding-0.
|
|
63
|
-
mapfolding-0.
|
|
64
|
-
mapfolding-0.
|
|
65
|
-
mapfolding-0.
|
|
66
|
-
mapfolding-0.
|
|
50
|
+
mapfolding-0.11.0.dist-info/METADATA,sha256=8Blxgr_WJnTxgtvXDTLjxM-hh5c6GRhpig0B9za32Dg,7560
|
|
51
|
+
mapfolding-0.11.0.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
|
|
52
|
+
mapfolding-0.11.0.dist-info/entry_points.txt,sha256=F3OUeZR1XDTpoH7k3wXuRb3KF_kXTTeYhu5AGK1SiOQ,146
|
|
53
|
+
mapfolding-0.11.0.dist-info/top_level.txt,sha256=1gP2vFaqPwHujGwb3UjtMlLEGN-943VSYFR7V4gDqW8,17
|
|
54
|
+
mapfolding-0.11.0.dist-info/RECORD,,
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"""This file is generated automatically, so changes to this file will be lost."""
|
|
2
|
-
from mapFolding import astDOTParamSpec, astDOTTryStar, astDOTTypeAlias, astDOTTypeVar, astDOTTypeVarTuple, astDOTtype_param
|
|
3
|
-
from typing import Any, TypeAlias as typing_TypeAlias
|
|
4
|
-
import ast
|
|
5
|
-
intORstr: typing_TypeAlias = Any
|
|
6
|
-
intORstrORtype_params: typing_TypeAlias = Any
|
|
7
|
-
intORtype_params: typing_TypeAlias = Any
|
|
8
|
-
hasDOTannotation_expr: typing_TypeAlias = ast.AnnAssign
|
|
9
|
-
hasDOTannotation_exprOrNone: typing_TypeAlias = ast.arg
|
|
10
|
-
hasDOTannotation: typing_TypeAlias = hasDOTannotation_expr | hasDOTannotation_exprOrNone
|
|
11
|
-
hasDOTarg_Identifier: typing_TypeAlias = ast.arg
|
|
12
|
-
hasDOTarg_IdentifierOrNone: typing_TypeAlias = ast.keyword
|
|
13
|
-
hasDOTarg: typing_TypeAlias = hasDOTarg_Identifier | hasDOTarg_IdentifierOrNone
|
|
14
|
-
hasDOTargs_arguments: typing_TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef | ast.Lambda
|
|
15
|
-
hasDOTargs_list_expr: typing_TypeAlias = ast.Call
|
|
16
|
-
hasDOTargs_list_arg: typing_TypeAlias = ast.arguments
|
|
17
|
-
hasDOTargs: typing_TypeAlias = hasDOTargs_arguments | hasDOTargs_list_expr | hasDOTargs_list_arg
|
|
18
|
-
hasDOTargtypes: typing_TypeAlias = ast.FunctionType
|
|
19
|
-
hasDOTasname: typing_TypeAlias = ast.alias
|
|
20
|
-
hasDOTattr: typing_TypeAlias = ast.Attribute
|
|
21
|
-
hasDOTbases: typing_TypeAlias = ast.ClassDef
|
|
22
|
-
hasDOTbody_list_stmt: typing_TypeAlias = ast.Module | ast.Interactive | ast.FunctionDef | ast.AsyncFunctionDef | ast.ClassDef | ast.For | ast.AsyncFor | ast.While | ast.If | ast.With | ast.AsyncWith | ast.Try | ast.ExceptHandler | astDOTTryStar | ast.match_case
|
|
23
|
-
hasDOTbody_expr: typing_TypeAlias = ast.Expression | ast.Lambda | ast.IfExp
|
|
24
|
-
hasDOTbody: typing_TypeAlias = hasDOTbody_list_stmt | hasDOTbody_expr
|
|
25
|
-
hasDOTbound: typing_TypeAlias = astDOTTypeVar
|
|
26
|
-
hasDOTcases: typing_TypeAlias = ast.Match
|
|
27
|
-
hasDOTcause: typing_TypeAlias = ast.Raise
|
|
28
|
-
hasDOTcls: typing_TypeAlias = ast.MatchClass
|
|
29
|
-
hasDOTcomparators: typing_TypeAlias = ast.Compare
|
|
30
|
-
hasDOTcontext_expr: typing_TypeAlias = ast.withitem
|
|
31
|
-
hasDOTconversion: typing_TypeAlias = ast.FormattedValue
|
|
32
|
-
hasDOTctx: typing_TypeAlias = ast.Attribute | ast.Subscript | ast.Starred | ast.Name | ast.List | ast.Tuple
|
|
33
|
-
hasDOTdecorator_list: typing_TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef | ast.ClassDef
|
|
34
|
-
hasDOTdefault_value: typing_TypeAlias = astDOTTypeVar | astDOTParamSpec | astDOTTypeVarTuple
|
|
35
|
-
hasDOTdefaults: typing_TypeAlias = ast.arguments
|
|
36
|
-
hasDOTelt: typing_TypeAlias = ast.ListComp | ast.SetComp | ast.GeneratorExp
|
|
37
|
-
hasDOTelts: typing_TypeAlias = ast.Set | ast.List | ast.Tuple
|
|
38
|
-
hasDOTexc: typing_TypeAlias = ast.Raise
|
|
39
|
-
hasDOTfinalbody: typing_TypeAlias = ast.Try | astDOTTryStar
|
|
40
|
-
hasDOTformat_spec: typing_TypeAlias = ast.FormattedValue
|
|
41
|
-
hasDOTfunc: typing_TypeAlias = ast.Call
|
|
42
|
-
hasDOTgenerators: typing_TypeAlias = ast.ListComp | ast.SetComp | ast.DictComp | ast.GeneratorExp
|
|
43
|
-
hasDOTguard: typing_TypeAlias = ast.match_case
|
|
44
|
-
hasDOThandlers: typing_TypeAlias = ast.Try | astDOTTryStar
|
|
45
|
-
hasDOTid: typing_TypeAlias = ast.Name
|
|
46
|
-
hasDOTifs: typing_TypeAlias = ast.comprehension
|
|
47
|
-
hasDOTis_async: typing_TypeAlias = ast.comprehension
|
|
48
|
-
hasDOTitems: typing_TypeAlias = ast.With | ast.AsyncWith
|
|
49
|
-
hasDOTiter: typing_TypeAlias = ast.For | ast.AsyncFor | ast.comprehension
|
|
50
|
-
hasDOTkey: typing_TypeAlias = ast.DictComp
|
|
51
|
-
hasDOTkeys_list_exprOrNone: typing_TypeAlias = ast.Dict
|
|
52
|
-
hasDOTkeys_list_expr: typing_TypeAlias = ast.MatchMapping
|
|
53
|
-
hasDOTkeys: typing_TypeAlias = hasDOTkeys_list_exprOrNone | hasDOTkeys_list_expr
|
|
54
|
-
hasDOTkeywords: typing_TypeAlias = ast.ClassDef | ast.Call
|
|
55
|
-
hasDOTkind: typing_TypeAlias = ast.Constant
|
|
56
|
-
hasDOTkw_defaults: typing_TypeAlias = ast.arguments
|
|
57
|
-
hasDOTkwarg: typing_TypeAlias = ast.arguments
|
|
58
|
-
hasDOTkwd_attrs: typing_TypeAlias = ast.MatchClass
|
|
59
|
-
hasDOTkwd_patterns: typing_TypeAlias = ast.MatchClass
|
|
60
|
-
hasDOTkwonlyargs: typing_TypeAlias = ast.arguments
|
|
61
|
-
hasDOTleft: typing_TypeAlias = ast.BinOp | ast.Compare
|
|
62
|
-
hasDOTlevel: typing_TypeAlias = ast.ImportFrom
|
|
63
|
-
hasDOTlineno: typing_TypeAlias = ast.TypeIgnore
|
|
64
|
-
hasDOTlower: typing_TypeAlias = ast.Slice
|
|
65
|
-
hasDOTmodule: typing_TypeAlias = ast.ImportFrom
|
|
66
|
-
hasDOTmsg: typing_TypeAlias = ast.Assert
|
|
67
|
-
hasDOTname_Identifier: typing_TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef | ast.ClassDef | astDOTTypeVar | astDOTParamSpec | astDOTTypeVarTuple
|
|
68
|
-
hasDOTname_IdentifierOrNone: typing_TypeAlias = ast.ExceptHandler | ast.MatchStar | ast.MatchAs
|
|
69
|
-
hasDOTname_str: typing_TypeAlias = ast.alias
|
|
70
|
-
hasDOTname_Name: typing_TypeAlias = astDOTTypeAlias
|
|
71
|
-
hasDOTname: typing_TypeAlias = hasDOTname_Identifier | hasDOTname_IdentifierOrNone | hasDOTname_str | hasDOTname_Name
|
|
72
|
-
hasDOTnames_list_alias: typing_TypeAlias = ast.Import | ast.ImportFrom
|
|
73
|
-
hasDOTnames_list_Identifier: typing_TypeAlias = ast.Global | ast.Nonlocal
|
|
74
|
-
hasDOTnames: typing_TypeAlias = hasDOTnames_list_alias | hasDOTnames_list_Identifier
|
|
75
|
-
hasDOTop_operator: typing_TypeAlias = ast.AugAssign | ast.BinOp
|
|
76
|
-
hasDOTop_boolop: typing_TypeAlias = ast.BoolOp
|
|
77
|
-
hasDOTop_unaryop: typing_TypeAlias = ast.UnaryOp
|
|
78
|
-
hasDOTop: typing_TypeAlias = hasDOTop_operator | hasDOTop_boolop | hasDOTop_unaryop
|
|
79
|
-
hasDOToperand: typing_TypeAlias = ast.UnaryOp
|
|
80
|
-
hasDOTops: typing_TypeAlias = ast.Compare
|
|
81
|
-
hasDOToptional_vars: typing_TypeAlias = ast.withitem
|
|
82
|
-
hasDOTorelse_list_stmt: typing_TypeAlias = ast.For | ast.AsyncFor | ast.While | ast.If | ast.Try | astDOTTryStar
|
|
83
|
-
hasDOTorelse_expr: typing_TypeAlias = ast.IfExp
|
|
84
|
-
hasDOTorelse: typing_TypeAlias = hasDOTorelse_list_stmt | hasDOTorelse_expr
|
|
85
|
-
hasDOTpattern_pattern: typing_TypeAlias = ast.match_case
|
|
86
|
-
hasDOTpattern_patternOrNone: typing_TypeAlias = ast.MatchAs
|
|
87
|
-
hasDOTpattern: typing_TypeAlias = hasDOTpattern_pattern | hasDOTpattern_patternOrNone
|
|
88
|
-
hasDOTpatterns: typing_TypeAlias = ast.MatchSequence | ast.MatchMapping | ast.MatchClass | ast.MatchOr
|
|
89
|
-
hasDOTposonlyargs: typing_TypeAlias = ast.arguments
|
|
90
|
-
hasDOTrest: typing_TypeAlias = ast.MatchMapping
|
|
91
|
-
hasDOTreturns_expr: typing_TypeAlias = ast.FunctionType
|
|
92
|
-
hasDOTreturns_exprOrNone: typing_TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef
|
|
93
|
-
hasDOTreturns: typing_TypeAlias = hasDOTreturns_expr | hasDOTreturns_exprOrNone
|
|
94
|
-
hasDOTright: typing_TypeAlias = ast.BinOp
|
|
95
|
-
hasDOTsimple: typing_TypeAlias = ast.AnnAssign
|
|
96
|
-
hasDOTslice: typing_TypeAlias = ast.Subscript
|
|
97
|
-
hasDOTstep: typing_TypeAlias = ast.Slice
|
|
98
|
-
hasDOTsubject: typing_TypeAlias = ast.Match
|
|
99
|
-
hasDOTtag: typing_TypeAlias = ast.TypeIgnore
|
|
100
|
-
hasDOTtarget_NameOrAttributeOrSubscript: typing_TypeAlias = ast.AugAssign | ast.AnnAssign
|
|
101
|
-
hasDOTtarget_expr: typing_TypeAlias = ast.For | ast.AsyncFor | ast.comprehension
|
|
102
|
-
hasDOTtarget_Name: typing_TypeAlias = ast.NamedExpr
|
|
103
|
-
hasDOTtarget: typing_TypeAlias = hasDOTtarget_NameOrAttributeOrSubscript | hasDOTtarget_expr | hasDOTtarget_Name
|
|
104
|
-
hasDOTtargets: typing_TypeAlias = ast.Delete | ast.Assign
|
|
105
|
-
hasDOTtest: typing_TypeAlias = ast.While | ast.If | ast.Assert | ast.IfExp
|
|
106
|
-
hasDOTtype: typing_TypeAlias = ast.ExceptHandler
|
|
107
|
-
hasDOTtype_comment: typing_TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef | ast.Assign | ast.For | ast.AsyncFor | ast.With | ast.AsyncWith | ast.arg
|
|
108
|
-
hasDOTtype_ignores: typing_TypeAlias = ast.Module
|
|
109
|
-
hasDOTtype_params: typing_TypeAlias = ast.FunctionDef | ast.AsyncFunctionDef | ast.ClassDef | astDOTTypeAlias
|
|
110
|
-
hasDOTupper: typing_TypeAlias = ast.Slice
|
|
111
|
-
hasDOTvalue_exprOrNone: typing_TypeAlias = ast.Return | ast.AnnAssign | ast.Yield
|
|
112
|
-
hasDOTvalue_expr: typing_TypeAlias = ast.Assign | ast.AugAssign | ast.Expr | ast.NamedExpr | ast.DictComp | ast.Await | ast.YieldFrom | ast.FormattedValue | ast.Attribute | ast.Subscript | ast.Starred | ast.keyword | astDOTTypeAlias | ast.MatchValue
|
|
113
|
-
hasDOTvalue_Any: typing_TypeAlias = ast.Constant
|
|
114
|
-
hasDOTvalue_LiteralTrueFalseOrNone: typing_TypeAlias = ast.MatchSingleton
|
|
115
|
-
hasDOTvalue: typing_TypeAlias = hasDOTvalue_exprOrNone | hasDOTvalue_expr | hasDOTvalue_Any | hasDOTvalue_LiteralTrueFalseOrNone
|
|
116
|
-
hasDOTvalues: typing_TypeAlias = ast.BoolOp | ast.Dict | ast.JoinedStr
|
|
117
|
-
hasDOTvararg: typing_TypeAlias = ast.arguments
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
from mapFolding import astDOTParamSpec, astDOTTryStar, astDOTtype_param, astDOTTypeAlias, astDOTTypeVar, astDOTTypeVarTuple
|
|
2
|
-
from typing import Any, TypeAlias as typing_TypeAlias, TypeVar as typing_TypeVar
|
|
3
|
-
import ast
|
|
4
|
-
|
|
5
|
-
# TODO understand typing.
|
|
6
|
-
|
|
7
|
-
# NOTE Prototype of an idea to subclass composable methods so that typing information
|
|
8
|
-
# can extend beyond the top level of the ast node.
|
|
9
|
-
class ImaCallToName(ast.Call):
|
|
10
|
-
func: ast.Name # pyright: ignore[reportIncompatibleVariableOverride]
|
|
11
|
-
|
|
12
|
-
# Type hints through TypeAlias or type "hints" through the identifier name.
|
|
13
|
-
ast_expr_Slice: typing_TypeAlias = ast.expr
|
|
14
|
-
ast_Identifier: typing_TypeAlias = str
|
|
15
|
-
str_nameDOTname: typing_TypeAlias = str
|
|
16
|
-
|
|
17
|
-
# Limited success with TypeVar.
|
|
18
|
-
个 = typing_TypeVar('个', bound = ast.AST, covariant = True)
|
|
19
|
-
NodeORattribute = typing_TypeVar('NodeORattribute', bound = ast.AST | ast_expr_Slice | ast_Identifier | str_nameDOTname | bool | Any | None, covariant = True)
|
|
20
|
-
|
|
21
|
-
# For my reference, all ast classes by subgroup:
|
|
22
|
-
Ima_ast_boolop: typing_TypeAlias = ast.boolop | ast.And | ast.Or
|
|
23
|
-
Ima_ast_cmpop: typing_TypeAlias = ast.cmpop | ast.Eq | ast.NotEq | ast.Lt | ast.LtE | ast.Gt | ast.GtE | ast.Is | ast.IsNot | ast.In | ast.NotIn
|
|
24
|
-
Ima_ast_excepthandler: typing_TypeAlias = ast.excepthandler | ast.ExceptHandler
|
|
25
|
-
Ima_ast_expr_context: typing_TypeAlias = ast.expr_context | ast.Load | ast.Store | ast.Del
|
|
26
|
-
Ima_ast_expr: typing_TypeAlias = ast.expr | ast.Attribute | ast.Await | ast.BinOp | ast.BoolOp | ast.Call | ast.Compare | ast.Constant | ast.Dict | ast.DictComp | ast.FormattedValue | ast.GeneratorExp | ast.IfExp | ast.JoinedStr | ast.Lambda | ast.List | ast.ListComp | ast.Name | ast.NamedExpr | ast.Set | ast.SetComp | ast.Slice | ast.Starred | ast.Subscript | ast.Tuple | ast.UnaryOp | ast.Yield | ast.YieldFrom
|
|
27
|
-
Ima_ast_mod: typing_TypeAlias = ast.mod | ast.Expression | ast.FunctionType | ast.Interactive | ast.Module
|
|
28
|
-
Ima_ast_operator: typing_TypeAlias = ast.operator | ast.Add | ast.Sub | ast.Mult | ast.MatMult | ast.Div | ast.Mod | ast.Pow | ast.LShift | ast.RShift | ast.BitOr | ast.BitXor | ast.BitAnd | ast.FloorDiv
|
|
29
|
-
Ima_ast_orphan = ast.alias | ast.arg | ast.arguments | ast.comprehension | ast.keyword | ast.match_case | ast.withitem
|
|
30
|
-
iMa_ast_pattern: typing_TypeAlias = ast.pattern | ast.MatchAs | ast.MatchClass | ast.MatchMapping | ast.MatchOr | ast.MatchSequence | ast.MatchSingleton | ast.MatchStar | ast.MatchValue
|
|
31
|
-
Ima_ast_stmt: typing_TypeAlias = ast.stmt | ast.AnnAssign | ast.Assert | ast.Assign | ast.AsyncFor | ast.AsyncFunctionDef | ast.AsyncWith | ast.AugAssign | ast.Break | ast.ClassDef | ast.Continue | ast.Delete | ast.Expr | ast.For | ast.FunctionDef | ast.Global | ast.If | ast.Import | ast.ImportFrom | ast.Match | ast.Nonlocal | ast.Pass | ast.Raise | ast.Return | ast.Try | astDOTTryStar | astDOTTypeAlias | ast.While | ast.With
|
|
32
|
-
Ima_ast_type_ignore: typing_TypeAlias = ast.type_ignore | ast.TypeIgnore
|
|
33
|
-
Ima_ast_type_param: typing_TypeAlias = astDOTtype_param | astDOTParamSpec | astDOTTypeVar | astDOTTypeVarTuple
|
|
34
|
-
Ima_ast_unaryop: typing_TypeAlias = ast.unaryop | ast.Invert | ast.Not | ast.UAdd | ast.USub
|