Skip to content
Draft
224 changes: 48 additions & 176 deletions .basedpyright/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1793,94 +1793,6 @@
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 4,
"endColumn": 7,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 11,
"endColumn": 31,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 11,
"endColumn": 31,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 4,
"endColumn": 7,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 15,
"endColumn": 35,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 15,
"endColumn": 42,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 15,
"endColumn": 44,
"lineCount": 1
}
},
{
"code": "reportUnannotatedClassAttribute",
"range": {
"startColumn": 13,
"endColumn": 18,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 4,
"endColumn": 8,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 11,
"endColumn": 21,
"lineCount": 1
}
},
{
"code": "reportAny",
"range": {
"startColumn": 11,
"endColumn": 21,
"lineCount": 1
}
},
{
"code": "reportUnannotatedClassAttribute",
"range": {
Expand Down Expand Up @@ -7513,94 +7425,6 @@
"lineCount": 1
}
},
{
"code": "reportImplicitOverride",
"range": {
"startColumn": 8,
"endColumn": 23,
"lineCount": 1
}
},
{
"code": "reportImplicitOverride",
"range": {
"startColumn": 8,
"endColumn": 24,
"lineCount": 1
}
},
{
"code": "reportImplicitOverride",
"range": {
"startColumn": 8,
"endColumn": 31,
"lineCount": 1
}
},
{
"code": "reportImplicitOverride",
"range": {
"startColumn": 8,
"endColumn": 16,
"lineCount": 1
}
},
{
"code": "reportUnusedVariable",
"range": {
"startColumn": 20,
"endColumn": 24,
"lineCount": 1
}
},
{
"code": "reportImplicitOverride",
"range": {
"startColumn": 8,
"endColumn": 15,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 15,
"endColumn": 60,
"lineCount": 1
}
},
{
"code": "reportUnknownArgumentType",
"range": {
"startColumn": 22,
"endColumn": 40,
"lineCount": 1
}
},
{
"code": "reportUnknownLambdaType",
"range": {
"startColumn": 29,
"endColumn": 30,
"lineCount": 1
}
},
{
"code": "reportUnknownLambdaType",
"range": {
"startColumn": 35,
"endColumn": 40,
"lineCount": 1
}
},
{
"code": "reportUnknownArgumentType",
"range": {
"startColumn": 48,
"endColumn": 59,
"lineCount": 1
}
},
{
"code": "reportImplicitOverride",
"range": {
Expand Down Expand Up @@ -7825,6 +7649,54 @@
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 8,
"endColumn": 14,
"lineCount": 1
}
},
{
"code": "reportUnknownMemberType",
"range": {
"startColumn": 17,
"endColumn": 27,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 15,
"endColumn": 21,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 8,
"endColumn": 14,
"lineCount": 1
}
},
{
"code": "reportUnknownMemberType",
"range": {
"startColumn": 17,
"endColumn": 47,
"lineCount": 1
}
},
{
"code": "reportUnknownVariableType",
"range": {
"startColumn": 15,
"endColumn": 21,
"lineCount": 1
}
},
{
"code": "reportIncompatibleMethodOverride",
"range": {
Expand Down
8 changes: 7 additions & 1 deletion pytato/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,17 @@ def set_debug_enabled(flag: bool) -> None:
)
from pytato.distributed.tags import number_distributed_tags
from pytato.distributed.verify import verify_distributed_partition
from pytato.function import trace_call
from pytato.function import Call, FunctionDefinition, NamedCallResult, trace_call
from pytato.loopy import LoopyCall
from pytato.pad import pad
from pytato.reductions import all, amax, amin, any, prod, sum
from pytato.target import Target
from pytato.target.loopy import LoopyPyOpenCLTarget
from pytato.target.loopy.codegen import generate_loopy
from pytato.target.python.jax import generate_jax

# FIXME: Should some of the functions from pytato.transform be imported here?
# (deduplicate, map_and_copy, etc.)
from pytato.transform.calls import inline_calls, tag_all_calls_to_be_inlined
from pytato.transform.dead_code_elimination import eliminate_dead_code
from pytato.transform.lower_to_index_lambda import to_index_lambda
Expand All @@ -179,6 +182,7 @@ def set_debug_enabled(flag: bool) -> None:
"Axis",
"AxisPermutation",
"BasicIndex",
"Call",
"Concatenate",
"DataWrapper",
"DictOfNamedArrays",
Expand All @@ -188,13 +192,15 @@ def set_debug_enabled(flag: bool) -> None:
"DistributedSend",
"DistributedSendRefHolder",
"Einsum",
"FunctionDefinition",
"IndexBase",
"IndexLambda",
"IndexRemappingBase",
"InputArgumentBase",
"LoopyCall",
"LoopyPyOpenCLTarget",
"NamedArray",
"NamedCallResult",
"Placeholder",
"ReductionDescriptor",
"Reshape",
Expand Down
Loading
Loading