Skip to content

Commit a3e8c53

Browse files
committed
Add __enter__ to TemporaryPathPlus to aid type checking.
1 parent 1d871dc commit a3e8c53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

domdf_python_tools/paths.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,3 +1002,6 @@ def cleanup(self) -> None:
10021002

10031003
with context:
10041004
super().cleanup()
1005+
1006+
def __enter__(self) -> PathPlus:
1007+
return self.name

0 commit comments

Comments
 (0)