Skip to content

Commit

Permalink
change Dict to dict
Browse files Browse the repository at this point in the history
  • Loading branch information
MarleneBusch committed Mar 4, 2024
1 parent 079b267 commit 8ea19b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def generate_data(
light_direction: torch.Tensor, expected_value: torch.Tensor
) -> Dict[str, torch.Tensor]:
) -> dict[str, torch.Tensor]:
"""
Generate all the relevant data for this test.
Expand Down Expand Up @@ -96,7 +96,7 @@ def generate_data(
],
name="environment_data",
)
def data(request) -> Dict[str, torch.Tensor]:
def data(request) -> dict[str, torch.Tensor]:
"""
[INSERT DESCRIPTION HERE!].
Expand All @@ -113,7 +113,7 @@ def data(request) -> Dict[str, torch.Tensor]:
return generate_data(*request.param)


def test_compute_bitmaps(environment_data: Dict[str, torch.Tensor]) -> None:
def test_compute_bitmaps(environment_data: dict[str, torch.Tensor]) -> None:
"""
Compute resulting flux density distribution (bitmap) for the given test case.
Expand Down
6 changes: 3 additions & 3 deletions artist/scenario/light_source/tests/test_light_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

def generate_data(
light_direction: torch.Tensor, expected_value: torch.Tensor
) -> Dict[str, torch.Tensor]:
) -> dict[str, torch.Tensor]:
"""
Generate all the relevant data for this test.
Expand Down Expand Up @@ -93,7 +93,7 @@ def generate_data(
],
name="environment_data",
)
def data(request) -> Dict[str, torch.Tensor]:
def data(request) -> dict[str, torch.Tensor]:
"""
[INSERT DESCRIPTION HERE!].
Expand All @@ -110,7 +110,7 @@ def data(request) -> Dict[str, torch.Tensor]:
return generate_data(*request.param)


def test_compute_bitmaps(environment_data: Dict[str, torch.Tensor]) -> None:
def test_compute_bitmaps(environment_data: dict[str, torch.Tensor]) -> None:
"""
Compute resulting flux density distribution (bitmap) for the given test case.
Expand Down

0 comments on commit 8ea19b9

Please sign in to comment.