Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Nov 14, 2024
1 parent 5c4af69 commit 543e0c1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/typed_diskcache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/typed_diskcache/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
5 changes: 3 additions & 2 deletions src/typed_diskcache/log/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pyright: reportMissingModuleSource=false
# pyright: reportMissingImports=false
from __future__ import annotations

import logging
Expand All @@ -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"]
Expand Down

0 comments on commit 543e0c1

Please sign in to comment.