Skip to content

Commit

Permalink
adding return typing
Browse files Browse the repository at this point in the history
  • Loading branch information
codingwithsurya committed Oct 13, 2023
1 parent 9e03ea0 commit b3e82b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion training/training/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def fromDefault(
test_transform=None,
batch_size: int = 32,
shuffle: bool = True,
):
) -> "ImageDefaultDatasetCreator":
return cls(dataset_name, train_transform, test_transform, batch_size, shuffle)

def delete_datasets_from_directory(self):
Expand Down
2 changes: 1 addition & 1 deletion training/training/routes/image/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from training.routes.image.image import router


def get_image_router():
def get_image_router() -> router:
return router

0 comments on commit b3e82b9

Please sign in to comment.