From d926b4fe9a8e16a718d2dc1a4f2d1bde36d9c54c Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 13 Feb 2023 19:02:54 +0000 Subject: [PATCH] Fix annotation type-hints in some files on Python 3.x Fixes #28. --- devine/core/downloaders/aria2c.py | 2 ++ devine/core/downloaders/saldl.py | 2 ++ devine/core/proxies/hola.py | 2 ++ devine/core/proxies/nordvpn.py | 2 ++ devine/core/tracks/track.py | 2 ++ devine/core/utilities.py | 2 ++ 6 files changed, 12 insertions(+) diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index 0b4175e..9019552 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import asyncio import subprocess from pathlib import Path diff --git a/devine/core/downloaders/saldl.py b/devine/core/downloaders/saldl.py index 34166d1..75dc1d7 100644 --- a/devine/core/downloaders/saldl.py +++ b/devine/core/downloaders/saldl.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import subprocess from pathlib import Path from typing import Optional, Union diff --git a/devine/core/proxies/hola.py b/devine/core/proxies/hola.py index 1be75cf..50812b4 100644 --- a/devine/core/proxies/hola.py +++ b/devine/core/proxies/hola.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import random import re import subprocess diff --git a/devine/core/proxies/nordvpn.py b/devine/core/proxies/nordvpn.py index 12b6046..1d2059f 100644 --- a/devine/core/proxies/nordvpn.py +++ b/devine/core/proxies/nordvpn.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import json import re from typing import Optional diff --git a/devine/core/tracks/track.py b/devine/core/tracks/track.py index 12c15f7..7cb1486 100644 --- a/devine/core/tracks/track.py +++ b/devine/core/tracks/track.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import asyncio import logging import re diff --git a/devine/core/utilities.py b/devine/core/utilities.py index e4939e1..190bbc0 100644 --- a/devine/core/utilities.py +++ b/devine/core/utilities.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import ast import contextlib import importlib.util