We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeError
1 parent c339652 commit 2bb1b23Copy full SHA for 2bb1b23
empack/pack.py
@@ -1,11 +1,13 @@
1
+from __future__ import annotations
2
+
3
import json
4
import os
5
import os.path
6
import shutil
7
import sys
8
from pathlib import Path, PosixPath, PureWindowsPath
9
from tempfile import TemporaryDirectory
-from typing import Callable, Optional
10
+from typing import Callable
11
12
from platformdirs import user_cache_dir
13
@@ -253,7 +255,7 @@ def pack_env(
253
255
compression_format=ALLOWED_FORMATS[0],
254
256
compresslevel=9,
257
outdir=None,
- package_url_factory: Optional[Callable] = None,
258
+ package_url_factory: Callable | None = None,
259
):
260
with TemporaryDirectory() as tmp_dir:
261
# filter the complete environment
0 commit comments