Skip to content

Commit 6eeaeab

Browse files
committed
Remove issubclass dependency
zmievsa/issubclass#1
1 parent cf0ed68 commit 6eeaeab

File tree

6 files changed

+11
-18
lines changed

6 files changed

+11
-18
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Please follow [the Keep a Changelog standard](https://keepachangelog.com/en/1.0.
55

66
## [Unreleased]
77

8+
## [5.2.0]
9+
10+
### Removed
11+
12+
* `issubclass` dependency
13+
814
## [5.1.4]
915

1016
### Fixed

cadwyn/_render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
from typing import TYPE_CHECKING, Union
66

77
import typer
8-
from issubclass import issubclass as lenient_issubclass
98
from pydantic import BaseModel
109

1110
from cadwyn._asts import get_fancy_repr, pop_docstring_from_cls_body
11+
from cadwyn._utils import lenient_issubclass
1212
from cadwyn.exceptions import CadwynRenderError
1313
from cadwyn.schema_generation import (
1414
PydanticFieldWrapper,

cadwyn/route_generation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
import fastapi.utils
1818
from fastapi import APIRouter
1919
from fastapi.routing import APIRoute
20-
from issubclass import issubclass as lenient_issubclass
2120
from pydantic import BaseModel
2221
from starlette.routing import BaseRoute
2322
from typing_extensions import TypeVar, assert_never
2423

25-
from cadwyn._utils import DATACLASS_SLOTS, Sentinel
24+
from cadwyn._utils import DATACLASS_SLOTS, Sentinel, lenient_issubclass
2625
from cadwyn.exceptions import (
2726
CadwynError,
2827
RouteAlreadyExistsError,

cadwyn/structure/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from dataclasses import dataclass
33
from typing import TYPE_CHECKING, Any, Literal, Union, cast
44

5-
from issubclass import issubclass as lenient_issubclass
65
from pydantic import AliasChoices, AliasPath, BaseModel, Field
76
from pydantic._internal._decorators import PydanticDescriptorProxy, unwrap_wrapped_function
87
from pydantic.fields import FieldInfo
@@ -12,6 +11,7 @@
1211
Sentinel,
1312
fully_unwrap_decorator,
1413
get_name_of_function_wrapped_in_pydantic_validator,
14+
lenient_issubclass,
1515
)
1616
from cadwyn.exceptions import CadwynStructureError
1717

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "cadwyn"
3-
version = "5.1.4"
3+
version = "5.2.0"
44
description = "Production-ready community-driven modern Stripe-like API versioning in FastAPI"
55
authors = [{ name = "Stanislav Zmiev", email = "zmievsa@gmail.com" }]
66
license = "MIT"
@@ -55,7 +55,6 @@ dependencies = [
5555
"starlette >=0.30.0",
5656
"pydantic >=2.0.0",
5757
"jinja2 >=3.1.2",
58-
"issubclass >=0.1.2",
5958
"backports-strenum >=1.3.1,<2; python_version < '3.11'",
6059
"typing-extensions>=4.8.0",
6160
]

uv.lock

Lines changed: 1 addition & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)