make compatible with 3.11
This commit is contained in:
parent
e2431f2b21
commit
ce89358301
|
|
@ -3,7 +3,7 @@ name = "mrpy-nvim"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Add your description here"
|
description = "Add your description here"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.11"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"pynvim~=0.6.0",
|
"pynvim~=0.6.0",
|
||||||
"requests>=2.32.5",
|
"requests>=2.32.5",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
type JSONDataScalar = str | None | float | bool
|
from typing import TypeAlias
|
||||||
type JSONDataList = list[JSONDataScalar | "JSONDataMap" | "JSONDataList"]
|
|
||||||
type JSONDataMap = dict[str, JSONDataScalar | JSONDataList | "JSONDataMap"]
|
|
||||||
type JSONData = JSONDataMap | JSONDataList
|
JSONDataScalar: TypeAlias = str | None | float | bool
|
||||||
|
JSONDataList: TypeAlias = list[JSONDataScalar | "JSONDataMap" | "JSONDataList"]
|
||||||
|
JSONDataMap: TypeAlias = dict[str, JSONDataScalar | JSONDataList | "JSONDataMap"]
|
||||||
|
JSONData: TypeAlias = JSONDataMap | JSONDataList
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue