mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 10:55:57 +00:00
Python: Force dependency versions
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
import typing as t
|
||||
|
||||
from pathlib import Path, PosixPath, WindowsPath
|
||||
import griffe
|
||||
from _griffe.encoders import _json_encoder_map
|
||||
|
||||
_json_encoder_map: dict[type, t.Callable[[t.Any], t.Any]] = {
|
||||
Path: str,
|
||||
PosixPath: str,
|
||||
WindowsPath: str,
|
||||
set: sorted,
|
||||
}
|
||||
|
||||
|
||||
class CustomEncoder(griffe.JSONEncoder):
|
||||
|
||||
@@ -9,8 +9,8 @@ authors = [
|
||||
]
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"griffe",
|
||||
"griffe_typingdoc"
|
||||
"griffe (>=1.13.0, <2.0.0)",
|
||||
"griffe_typingdoc (>=0.2.8, <1.0.0)"
|
||||
]
|
||||
|
||||
[project.scripts]
|
||||
|
||||
Reference in New Issue
Block a user