aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-11-24 09:14:26 +0800
committerGravatar ionite34 <[email protected]>2022-11-24 09:14:26 +0800
commite4ea12c679af55bbf1de0d27508ba30ccc50df21 (patch)
tree71115b2b31ad361d72298f910f78d5c04abc3b03
parentMerge branch 'bytes-output' of https://github.com/python-discord/snekbox into... (diff)
Remove `None` type hints from home, name
-rw-r--r--snekbox/memfs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/snekbox/memfs.py b/snekbox/memfs.py
index 74b0d70..7c9e71b 100644
--- a/snekbox/memfs.py
+++ b/snekbox/memfs.py
@@ -80,12 +80,12 @@ class MemFS:
return self._path
@property
- def name(self) -> str | None:
+ def name(self) -> str:
"""Name of the temp dir."""
return self.path.name
@property
- def home(self) -> Path | None:
+ def home(self) -> Path:
"""Path to home directory."""
return Path(self.path, "home")