mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Improve typing for is_relative_to
This commit is contained in:
parent
4ce95dd1c3
commit
e39af17207
|
@ -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
|
||||
try:
|
||||
path.relative_to(base)
|
||||
|
|
Loading…
Reference in New Issue
Block a user