File tree Expand file tree Collapse file tree 2 files changed +12
-66
lines changed
Expand file tree Collapse file tree 2 files changed +12
-66
lines changed Original file line number Diff line number Diff line change 4343 "lineCount" : 1
4444 }
4545 },
46- {
47- "code" : " reportUnknownMemberType" ,
48- "range" : {
49- "startColumn" : 23 ,
50- "endColumn" : 54 ,
51- "lineCount" : 1
52- }
53- },
54- {
55- "code" : " reportAttributeAccessIssue" ,
56- "range" : {
57- "startColumn" : 43 ,
58- "endColumn" : 54 ,
59- "lineCount" : 1
60- }
61- },
62- {
63- "code" : " reportUnknownMemberType" ,
64- "range" : {
65- "startColumn" : 19 ,
66- "endColumn" : 50 ,
67- "lineCount" : 1
68- }
69- },
70- {
71- "code" : " reportAttributeAccessIssue" ,
72- "range" : {
73- "startColumn" : 39 ,
74- "endColumn" : 50 ,
75- "lineCount" : 1
76- }
77- },
7846 {
7947 "code" : " reportAny" ,
8048 "range" : {
815783 }
816784 ],
817785 "./arraycontext/container/dataclass.py" : [
818- {
819- "code" : " reportAttributeAccessIssue" ,
820- "range" : {
821- "startColumn" : 16 ,
822- "endColumn" : 33 ,
823- "lineCount" : 1
824- }
825- },
826- {
827- "code" : " reportUnknownVariableType" ,
828- "range" : {
829- "startColumn" : 16 ,
830- "endColumn" : 33 ,
831- "lineCount" : 1
832- }
833- },
834786 {
835787 "code" : " reportUnknownVariableType" ,
836788 "range" : {
15151467 }
15161468 ],
15171469 "./arraycontext/context.py" : [
1518- {
1519- "code" : " reportImplicitOverride" ,
1520- "range" : {
1521- "startColumn" : 8 ,
1522- "endColumn" : 16 ,
1523- "lineCount" : 1
1524- }
1525- },
15261470 {
15271471 "code" : " reportAny" ,
15281472 "range" : {
1055810502 }
1055910503 }
1056010504 ],
10505+ "./arraycontext/typing.py" : [
10506+ {
10507+ "code" : " reportUnknownVariableType" ,
10508+ "range" : {
10509+ "startColumn" : 20 ,
10510+ "endColumn" : 30 ,
10511+ "lineCount" : 1
10512+ }
10513+ }
10514+ ],
1056110515 "./arraycontext/version.py" : [
1056210516 {
1056310517 "code" : " reportUnusedParameter" ,
1276312717 }
1276412718 ],
1276512719 "./test/test_utils.py" : [
12766- {
12767- "code" : " reportDeprecated" ,
12768- "range" : {
12769- "startColumn" : 11 ,
12770- "endColumn" : 19 ,
12771- "lineCount" : 1
12772- }
12773- },
1277412720 {
1277512721 "code" : " reportDeprecated" ,
1277612722 "range" : {
Original file line number Diff line number Diff line change @@ -233,15 +233,15 @@ def is_array_container_type(cls: type | GenericAlias | UnionType) -> bool:
233233 function will say that :class:`numpy.ndarray` is an array container
234234 type, only object arrays *actually are* array containers.
235235 """
236- def pred (tp : type ) -> bool :
236+ def _is_array_container_type (tp : type ) -> bool :
237237 return (
238238 tp is ObjectArray
239239 or tp is _UserDefinedArrayContainer
240240 or tp is _UserDefinedArithArrayContainer
241241 or (serialize_container .dispatch (tp )
242242 is not serialize_container .__wrapped__ )) # pyright: ignore[reportUnknownMemberType, reportAttributeAccessIssue]
243243
244- return all_type_leaves_satisfy_predicate (pred , cls )
244+ return all_type_leaves_satisfy_predicate (_is_array_container_type , cls )
245245
246246
247247def is_array_container (ary : object ) -> TypeIs [ArrayContainer ]:
You can’t perform that action at this time.
0 commit comments