From 2276d020b30cd77458a4f358f7764d90334565e8 Mon Sep 17 00:00:00 2001 From: STACiA <69411527+staciax@users.noreply.github.com> Date: Wed, 8 Jan 2025 19:27:26 +0700 Subject: [PATCH] fix: update mypy configuration for utils --- pyproject.toml | 4 ++++ valorant/utils.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 41954f7..8d8a79d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,6 +55,10 @@ strict = true python_version = "3.10" exclude = [".venv", "build"] +[[tool.mypy.overrides]] +module = "valorant.utils" +disable_error_code = ["assignment", "import-not-found"] + [tool.ruff] line-length = 120 target-version = "py310" diff --git a/valorant/utils.py b/valorant/utils.py index bb821a6..fab589b 100644 --- a/valorant/utils.py +++ b/valorant/utils.py @@ -1,5 +1,3 @@ -# mypy: disable-error-code="assignment, import-not-found" - import json try: