fastapi-voyager 0.12.8__py3-none-any.whl → 0.12.9__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fastapi_voyager/type_helper.py +6 -2
- fastapi_voyager/version.py +1 -1
- {fastapi_voyager-0.12.8.dist-info → fastapi_voyager-0.12.9.dist-info}/METADATA +1 -1
- {fastapi_voyager-0.12.8.dist-info → fastapi_voyager-0.12.9.dist-info}/RECORD +7 -7
- {fastapi_voyager-0.12.8.dist-info → fastapi_voyager-0.12.9.dist-info}/WHEEL +0 -0
- {fastapi_voyager-0.12.8.dist-info → fastapi_voyager-0.12.9.dist-info}/entry_points.txt +0 -0
- {fastapi_voyager-0.12.8.dist-info → fastapi_voyager-0.12.9.dist-info}/licenses/LICENSE +0 -0
fastapi_voyager/type_helper.py
CHANGED
|
@@ -2,7 +2,7 @@ import inspect
|
|
|
2
2
|
import logging
|
|
3
3
|
import os
|
|
4
4
|
from types import UnionType
|
|
5
|
-
from typing import Annotated, Any, Generic, Union, get_args, get_origin
|
|
5
|
+
from typing import Annotated, Any, Generic, Union, get_args, get_origin, ForwardRef
|
|
6
6
|
|
|
7
7
|
import pydantic_resolve.constant as const
|
|
8
8
|
from pydantic import BaseModel
|
|
@@ -237,7 +237,11 @@ def safe_issubclass(kls, target_kls):
|
|
|
237
237
|
try:
|
|
238
238
|
return issubclass(kls, target_kls)
|
|
239
239
|
except TypeError:
|
|
240
|
-
|
|
240
|
+
# if kls is ForwardRef, log it
|
|
241
|
+
if isinstance(kls, ForwardRef):
|
|
242
|
+
logger.error(f'{str(kls)} is a ForwardRef, not a subclass of {target_kls.__module__}:{target_kls.__qualname__}')
|
|
243
|
+
else:
|
|
244
|
+
logger.debug(f'{kls.__module__}:{kls.__qualname__} is not subclass of {target_kls.__module__}:{target_kls.__qualname__}')
|
|
241
245
|
return False
|
|
242
246
|
|
|
243
247
|
|
fastapi_voyager/version.py
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__all__ = ["__version__"]
|
|
2
|
-
__version__ = "0.12.
|
|
2
|
+
__version__ = "0.12.9"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: fastapi-voyager
|
|
3
|
-
Version: 0.12.
|
|
3
|
+
Version: 0.12.9
|
|
4
4
|
Summary: Visualize FastAPI application's routing tree and dependencies
|
|
5
5
|
Project-URL: Homepage, https://github.com/allmonday/fastapi-voyager
|
|
6
6
|
Project-URL: Source, https://github.com/allmonday/fastapi-voyager
|
|
@@ -5,8 +5,8 @@ fastapi_voyager/module.py,sha256=h9YR3BpS-CAcJW9WCdVkF4opqwY32w9T67g9GfdLytk,342
|
|
|
5
5
|
fastapi_voyager/render.py,sha256=7jSChISqTV2agaO55thhwyrOhqVOMux4x7k8rSQROnU,9960
|
|
6
6
|
fastapi_voyager/server.py,sha256=wwCFl1eeq_jn8nfIwcy7s8Sh6MB55SN8u9AsJRnkFWQ,7979
|
|
7
7
|
fastapi_voyager/type.py,sha256=7EL1zaIwKVRGpLig7fqaOrZGN5k0Rm31C9COfck3CSs,1750
|
|
8
|
-
fastapi_voyager/type_helper.py,sha256=
|
|
9
|
-
fastapi_voyager/version.py,sha256=
|
|
8
|
+
fastapi_voyager/type_helper.py,sha256=UTCFWluFeGdGkJX3wiE_bZ2EgZsu4JkmqHjsJVdG81Q,9953
|
|
9
|
+
fastapi_voyager/version.py,sha256=zqg8eyYmMv7qmhNprlm0Gp1wy1_Md8MuU6RGjhIE1LQ,49
|
|
10
10
|
fastapi_voyager/voyager.py,sha256=qJZvkLh5W_18X5B4pJ8XYbytx2Wvcz-0OnYoHWw8XlA,14046
|
|
11
11
|
fastapi_voyager/web/graph-ui.js,sha256=wxKjmVEpaMJZXMTW7tJ4BiaACCI1oVN6cx7hSMI0K5U,6428
|
|
12
12
|
fastapi_voyager/web/graphviz.svg.css,sha256=zDCjjpT0Idufu5YOiZI76PL70-avP3vTyzGPh9M85Do,1563
|
|
@@ -27,8 +27,8 @@ fastapi_voyager/web/icon/favicon-16x16.png,sha256=JC07jEzfIYxBIoQn_FHXvyHuxESdhW
|
|
|
27
27
|
fastapi_voyager/web/icon/favicon-32x32.png,sha256=C7v1h58cfWOsiLp9yOIZtlx-dLasBcq3NqpHVGRmpt4,1859
|
|
28
28
|
fastapi_voyager/web/icon/favicon.ico,sha256=tZolYIXkkBcFiYl1A8ksaXN2VjGamzcSdes838dLvNc,15406
|
|
29
29
|
fastapi_voyager/web/icon/site.webmanifest,sha256=ep4Hzh9zhmiZF2At3Fp1dQrYQuYF_3ZPZxc1KcGBvwQ,263
|
|
30
|
-
fastapi_voyager-0.12.
|
|
31
|
-
fastapi_voyager-0.12.
|
|
32
|
-
fastapi_voyager-0.12.
|
|
33
|
-
fastapi_voyager-0.12.
|
|
34
|
-
fastapi_voyager-0.12.
|
|
30
|
+
fastapi_voyager-0.12.9.dist-info/METADATA,sha256=mwXk2O8gEasBEpci6RZagsLQ7rUGk7tRPvLfb-Q7bUg,6523
|
|
31
|
+
fastapi_voyager-0.12.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
32
|
+
fastapi_voyager-0.12.9.dist-info/entry_points.txt,sha256=pEIKoUnIDXEtdMBq8EmXm70m16vELIu1VPz9-TBUFWM,53
|
|
33
|
+
fastapi_voyager-0.12.9.dist-info/licenses/LICENSE,sha256=lNVRR3y_bFVoFKuK2JM8N4sFaj3m-7j29kvL3olFi5Y,1067
|
|
34
|
+
fastapi_voyager-0.12.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|