From 543e0c1a9965212cfb54818233de13217431f923 Mon Sep 17 00:00:00 2001 From: phi Date: Thu, 14 Nov 2024 23:07:45 +0900 Subject: [PATCH] chore: update --- README.md | 4 ++-- pyproject.toml | 2 +- src/typed_diskcache/__init__.py | 2 +- src/typed_diskcache/core/types.py | 4 ++-- src/typed_diskcache/log/main.py | 5 +++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 6e71094..33fb1d2 100644 --- a/README.md +++ b/README.md @@ -41,10 +41,10 @@ I haven't tested it yet, so I can't guarantee it will work. I'll be adding more tests over time. ## TODO -- [x] docstring +- [X] docstring > Most of it is a copy of `python-diskcache`, but it's still pretty clean. - [X] docs -- [ ] tests +- [X] tests - [ ] performance ## License diff --git a/pyproject.toml b/pyproject.toml index 1650963..ce2c7ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ authors = [ { name = "phi", email = "phi.friday@gmail.com" } ] classifiers = [ - "Development Status :: 3 - Alpha", + "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", diff --git a/src/typed_diskcache/__init__.py b/src/typed_diskcache/__init__.py index 01733b2..634d100 100644 --- a/src/typed_diskcache/__init__.py +++ b/src/typed_diskcache/__init__.py @@ -30,7 +30,7 @@ def __getattr__(name: str) -> object: - if name == "__version__": + if name == "__version__": # pragma: no cover from importlib.metadata import version _version = globals()["__version__"] = version("typed-diskcache") diff --git a/src/typed_diskcache/core/types.py b/src/typed_diskcache/core/types.py index 31f373e..5377bd0 100644 --- a/src/typed_diskcache/core/types.py +++ b/src/typed_diskcache/core/types.py @@ -8,9 +8,9 @@ from pydantic import BaseModel, ConfigDict, Field from typing_extensions import LiteralString, TypedDict, TypeVar, override -if sys.version_info >= (3, 11): +if sys.version_info >= (3, 11): # pragma: no cover from enum import IntEnum, StrEnum -else: +else: # pragma: no cover from enum import Enum, IntEnum class StrEnum(str, Enum): diff --git a/src/typed_diskcache/log/main.py b/src/typed_diskcache/log/main.py index 2688a29..a5bffe3 100644 --- a/src/typed_diskcache/log/main.py +++ b/src/typed_diskcache/log/main.py @@ -1,4 +1,5 @@ # pyright: reportMissingModuleSource=false +# pyright: reportMissingImports=false from __future__ import annotations import logging @@ -10,9 +11,9 @@ from typed_diskcache.core.const import DEFAULT_LOG_LEVEL -if sys.version_info >= (3, 11): +if sys.version_info >= (3, 11): # pragma: no cover import tomllib as toml -else: +else: # pragma: no cover import tomli as toml __all__ = ["get_logger"]