From fd442a9c44e70e20517fd2edc68818fc232ed880 Mon Sep 17 00:00:00 2001 From: Firdaus Hakimi Date: Mon, 18 Mar 2024 00:59:55 +0800 Subject: [PATCH] Lower Python version requirement --- pyproject.toml | 2 +- scripts/add_license.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 277ec23..c27e9d9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ license = "GPL-3.0-only" readme = "README.md" [tool.poetry.dependencies] -python = "^3.12" +python = "^3.10" g4f = {extras = ["all"], version = "^0.2.5.4"} pyrogram = {extras = ["all"], version = "^2.0.106"} diff --git a/scripts/add_license.py b/scripts/add_license.py index 0e5ba33..7863f28 100644 --- a/scripts/add_license.py +++ b/scripts/add_license.py @@ -16,6 +16,7 @@ import os +from typing import TypeAlias from pathlib import Path # GPL-3.0 License header @@ -37,7 +38,7 @@ # Copyright (c) 2024, YeetCode Developers """ -type StatusIsOk = True | False +StatusIsOk: TypeAlias = bool def add_license_header(file_path) -> StatusIsOk: