Skip to content

Commit

Permalink
ignore typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
skallweitNV committed Dec 20, 2024
1 parent c956f55 commit 0a31dd0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion examples/pathtracer/pathtracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ def __init__(self, base_color: "sgl.float3param" = sgl.float3(0.5)):

class Mesh:
def __init__(
self, vertices: npt.NDArray[np.float32], indices: npt.NDArray[np.uint32]
self,
vertices: npt.NDArray[np.float32], # type: ignore
indices: npt.NDArray[np.uint32], # type: ignore
):
super().__init__()
assert vertices.ndim == 2 and vertices.dtype == np.float32
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/core/tests/test_bitmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def create_test_array(
width: int,
height: int,
channels: int,
dtype: npt.DTypeLike,
dtype: npt.DTypeLike, # type: ignore
type_range: tuple[float, float],
):
img = np.zeros((height, width, channels), dtype)
Expand Down
4 changes: 2 additions & 2 deletions src/sgl/core/tests/test_struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def check_conversion(
converter: StructConverter,
src_fmt: str | bytes,
dst_fmt: str | bytes,
src_values: npt.ArrayLike,
ref_values: Optional[npt.ArrayLike] = None,
src_values: npt.ArrayLike, # type: ignore
ref_values: Optional[npt.ArrayLike] = None, # type: ignore
err_thresh: float = 1e-6,
):
# print("\nsrc_values: " + str(src_values))
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_declrefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys
import sgl
from pathlib import Path
from deepdiff import DeepDiff
from deepdiff.diff import DeepDiff

sys.path.append(str(Path(__file__).parent))
import sglhelpers as helpers
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/device/tests/test_shader_cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TypeInfo:
# encoding of read back data
struct: str
# numpy dtype
dtype: DTypeLike
dtype: DTypeLike # type: ignore


TYPE_INFOS = {
Expand Down
2 changes: 1 addition & 1 deletion src/sgl/utils/tests/test_texture_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def create_test_array(
width: int,
height: int,
channels: int,
dtype: npt.DTypeLike,
dtype: npt.DTypeLike, # type: ignore
type_range: tuple[float, float],
):
img = np.zeros((height, width, channels), dtype)
Expand Down

0 comments on commit 0a31dd0

Please sign in to comment.