[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
40afc6ceec
commit
a71f5f55d1
2 changed files with 2 additions and 2 deletions
|
|
@ -648,7 +648,7 @@ def _path_is_ancestor(path, other):
|
|||
"""Take ``other`` and remove the length of ``path`` from it. Then join it
|
||||
to ``path``. If it is the original value, ``path`` is an ancestor of
|
||||
``other``."""
|
||||
return os.path.join(path, other[len(path):].lstrip(os.sep)) == other
|
||||
return os.path.join(path, other[len(path) :].lstrip(os.sep)) == other
|
||||
|
||||
|
||||
def load_dotenv(path: str | os.PathLike | None = None) -> bool:
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ class Config(dict):
|
|||
if not k.startswith(namespace):
|
||||
continue
|
||||
if trim_namespace:
|
||||
key = k[len(namespace):]
|
||||
key = k[len(namespace) :]
|
||||
else:
|
||||
key = k
|
||||
if lowercase:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue