Do not import PathLike directly into module-level namespace
This commit is contained in:
parent
5c42f2b53f
commit
f06acc20a5
@ -5,8 +5,8 @@
|
|||||||
"""
|
"""
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
from os import PathLike
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
# ========== Logging Setup ===========
|
# ========== Logging Setup ===========
|
||||||
@ -22,7 +22,7 @@ METADATA_WRITE = "w"
|
|||||||
|
|
||||||
|
|
||||||
# ========== Classes ==========
|
# ========== Classes ==========
|
||||||
class Hierarchy(PathLike):
|
class Hierarchy(os.PathLike):
|
||||||
"""A general class for organizing a hierarchy of data.
|
"""A general class for organizing a hierarchy of data.
|
||||||
|
|
||||||
**Implementation Details**
|
**Implementation Details**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user