Skip to content

Commit 2bb1b23

Browse files
Fix TypeError noticed in conda-forge release (#114)
* Fix `TypeError` * Fix linter error
1 parent c339652 commit 2bb1b23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

empack/pack.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
from __future__ import annotations
2+
13
import json
24
import os
35
import os.path
46
import shutil
57
import sys
68
from pathlib import Path, PosixPath, PureWindowsPath
79
from tempfile import TemporaryDirectory
8-
from typing import Callable, Optional
10+
from typing import Callable
911

1012
from platformdirs import user_cache_dir
1113

@@ -253,7 +255,7 @@ def pack_env(
253255
compression_format=ALLOWED_FORMATS[0],
254256
compresslevel=9,
255257
outdir=None,
256-
package_url_factory: Optional[Callable] = None,
258+
package_url_factory: Callable | None = None,
257259
):
258260
with TemporaryDirectory() as tmp_dir:
259261
# filter the complete environment

0 commit comments

Comments
 (0)