make compatible with 3.11

This commit is contained in:
AcerecA 2026-01-07 08:20:27 +01:00
parent e2431f2b21
commit 7d037aff85
2 changed files with 9 additions and 5 deletions

View File

@ -3,7 +3,7 @@ name = "mrpy-nvim"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
requires-python = ">=3.11"
dependencies = [
"pynvim~=0.6.0",
"requests>=2.32.5",

View File

@ -1,4 +1,8 @@
type JSONDataScalar = str | None | float | bool
type JSONDataList = list[JSONDataScalar | "JSONDataMap" | "JSONDataList"]
type JSONDataMap = dict[str, JSONDataScalar | JSONDataList | "JSONDataMap"]
type JSONData = JSONDataMap | JSONDataList
from __future__ import annotations
from typing import TypeAlias
JSONDataScalar: TypeAlias = str | None | float | bool
JSONDataList: TypeAlias = list[JSONDataScalar | "JSONDataMap" | "JSONDataList"]
JSONDataMap: TypeAlias = dict[str, JSONDataScalar | JSONDataList | "JSONDataMap"]
JSONData: TypeAlias = JSONDataMap | JSONDataList