From 694998ea16d152ed4a8321728e1019ab2e033bc4 Mon Sep 17 00:00:00 2001 From: Ben Mares Date: Sat, 28 Sep 2024 12:16:44 +0200 Subject: [PATCH] Enable new-style type annotations for py<3.10 --- grayskull/base/factory.py | 2 ++ grayskull/license/discovery.py | 2 ++ grayskull/main.py | 2 ++ grayskull/strategy/cran.py | 2 ++ grayskull/strategy/py_base.py | 2 ++ grayskull/strategy/pypi.py | 2 ++ 6 files changed, 12 insertions(+) diff --git a/grayskull/base/factory.py b/grayskull/base/factory.py index d78a5a630..813a878ec 100644 --- a/grayskull/base/factory.py +++ b/grayskull/base/factory.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import re from abc import ABC from pathlib import Path diff --git a/grayskull/license/discovery.py b/grayskull/license/discovery.py index 0fa4ec7dc..89b350d06 100644 --- a/grayskull/license/discovery.py +++ b/grayskull/license/discovery.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import base64 import json import logging diff --git a/grayskull/main.py b/grayskull/main.py index 0413a571a..a2880e51c 100644 --- a/grayskull/main.py +++ b/grayskull/main.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import argparse import logging import os diff --git a/grayskull/strategy/cran.py b/grayskull/strategy/cran.py index 3ec559034..1121521fa 100644 --- a/grayskull/strategy/cran.py +++ b/grayskull/strategy/cran.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import logging import os import re diff --git a/grayskull/strategy/py_base.py b/grayskull/strategy/py_base.py index 0c78342d1..f75da3485 100644 --- a/grayskull/strategy/py_base.py +++ b/grayskull/strategy/py_base.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import logging import os import re diff --git a/grayskull/strategy/pypi.py b/grayskull/strategy/pypi.py index 9647473b8..efbf1984f 100644 --- a/grayskull/strategy/pypi.py +++ b/grayskull/strategy/pypi.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import itertools import json import logging