mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-03 03:40:24 +03:00
Type fix
Also fix variable name
This commit is contained in:
parent
a36d0ff28f
commit
c458962742
|
@ -1035,9 +1035,9 @@ def make_tempdir() -> Generator[Path, None, None]:
|
|||
|
||||
try:
|
||||
with tempfile.TemporaryDirectory() as td:
|
||||
yield td
|
||||
yield Path(td)
|
||||
except PermissionError as e:
|
||||
warnings.warn(Warnings.W091.format(dir=d, msg=e))
|
||||
warnings.warn(Warnings.W091.format(dir=td, msg=e))
|
||||
|
||||
|
||||
def is_cwd(path: Union[Path, str]) -> bool:
|
||||
|
|
Loading…
Reference in New Issue
Block a user