Skip to content

Commit

Permalink
Improve typing on Environment class (#1469)
Browse files Browse the repository at this point in the history
Added return type to `__enter__()`
  • Loading branch information
krishanbhasin-gc authored Nov 1, 2023
1 parent 554fe37 commit 12e1b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlserver/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _lib_path(self) -> str:

return ""

def __enter__(self):
def __enter__(self) -> "Environment":
self._prev_sys_path = sys.path
self._prev_bin_path = os.environ["PATH"]

Expand Down

0 comments on commit 12e1b37

Please sign in to comment.