Skip to content

Commit

Permalink
Used Pathlike.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldemarmiesse committed Jul 31, 2019
1 parent e2a3648 commit 20162ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sacred/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from functools import partial
from packaging import version
from typing import Union
from pathlib import Path

import wrapt

Expand All @@ -39,7 +38,7 @@

PYTHON_IDENTIFIER = re.compile("^[a-zA-Z_][_a-zA-Z0-9]*$")

PathType = Union[str, bytes, Path]
PathType = Union[str, bytes, os.PathLike]


class ObserverError(Exception):
Expand Down

0 comments on commit 20162ac

Please sign in to comment.