Skip to content

Commit 9569cb2

Browse files
authored
Merge pull request #70 from rsokl/dependabot/pip/deps/main/pyright-1.1.374
Bump pyright from 1.1.373 to 1.1.374 in /deps
2 parents fdb19f9 + f59cd60 commit 9569cb2

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

deps/requirements-pyright.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pyright==1.1.373
1+
pyright==1.1.374

src/phantom_tensors/_internals/dim_binding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from functools import wraps
77
from typing import Any, Callable, Iterable, Optional, Tuple, Type, TypeVar, Union, cast
88

9-
from typing_extensions import Final, TypeAlias
9+
from typing_extensions import TypeAlias
1010

1111
import phantom_tensors._internals.utils as _utils
1212
from phantom_tensors._internals.utils import LiteralLike, NewTypeLike, UnpackLike
@@ -92,7 +92,7 @@ def check(shape_type: Tuple[ShapeDimType, ...], shape: Tuple[int, ...]) -> bool:
9292

9393
# if variadic tuple is present, need to use negative indexing to reference
9494
# location from the end of the tuple
95-
CURRENT_INDEX: Final = n if var_field_ind is None else n - len(shape_type)
95+
CURRENT_INDEX = n if var_field_ind is None else n - len(shape_type)
9696

9797
# The following symbols bind to dimensions (by symbol-reference)
9898
# Some of them may also carry with them additional validation checks,

tests/annotations.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,11 @@ def check_bad_tensor_parse(x: tr.Tensor):
7777

7878

7979
def check_readme_blurb_one():
80-
from typing import NewType
81-
8280
import numpy as np
8381

8482
from phantom_tensors import parse
8583
from phantom_tensors.numpy import NDArray
8684

87-
A = NewType("A", int)
88-
B = NewType("B", int)
89-
9085
# runtime: checks that shapes (2, 3) and (3, 2)
9186
# match (A, B) and (B, A) pattern
9287
if sys.version_info < (3, 8):

0 commit comments

Comments
 (0)