mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Improve typing for is_relative_to
This commit is contained in:
@@ -30,7 +30,7 @@ async def ui_version():
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def is_relative_to(path, base) -> bool:
|
def is_relative_to(path: Path, base: Path) -> bool:
|
||||||
# Helper function simulating behaviour of is_relative_to, which was only added in python 3.9
|
# Helper function simulating behaviour of is_relative_to, which was only added in python 3.9
|
||||||
try:
|
try:
|
||||||
path.relative_to(base)
|
path.relative_to(base)
|
||||||
|
|||||||
Reference in New Issue
Block a user