make compatible with 3.11
This commit is contained in:
+1
-1
@@ -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,8 @@
|
|||||||
type JSONDataScalar = str | None | float | bool
|
from __future__ import annotations
|
||||||
type JSONDataList = list[JSONDataScalar | "JSONDataMap" | "JSONDataList"]
|
from typing import TypeAlias
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user