Skip to content

Commit

Permalink
Fix TypeError noticed in conda-forge release (#114)
Browse files Browse the repository at this point in the history
* Fix `TypeError`

* Fix linter error
  • Loading branch information
agriyakhetarpal authored Jan 28, 2025
1 parent c339652 commit 2bb1b23
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions empack/pack.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
from __future__ import annotations

import json
import os
import os.path
import shutil
import sys
from pathlib import Path, PosixPath, PureWindowsPath
from tempfile import TemporaryDirectory
from typing import Callable, Optional
from typing import Callable

from platformdirs import user_cache_dir

Expand Down Expand Up @@ -253,7 +255,7 @@ def pack_env(
compression_format=ALLOWED_FORMATS[0],
compresslevel=9,
outdir=None,
package_url_factory: Optional[Callable] = None,
package_url_factory: Callable | None = None,
):
with TemporaryDirectory() as tmp_dir:
# filter the complete environment
Expand Down

0 comments on commit 2bb1b23

Please sign in to comment.