From 02e1311b3a5c12b1c08bbf282025b4f4a4bdf7b9 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 11 Aug 2023 11:50:59 +0530 Subject: [PATCH] build: pin typing_extensions to major version --- frappe/model/base_document.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/model/base_document.py b/frappe/model/base_document.py index 87f491d942..d19f28a475 100644 --- a/frappe/model/base_document.py +++ b/frappe/model/base_document.py @@ -227,7 +227,7 @@ class BaseDocument: if key in self.__dict__: del self.__dict__[key] - def append(self, key: str, value: D | dict | None = None): + def append(self, key: str, value: D | dict | None = None) -> D: """Append an item to a child table. Example: diff --git a/pyproject.toml b/pyproject.toml index e281cdb581..678be0bae7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,7 @@ dependencies = [ "tenacity~=8.2.2", "terminaltables~=3.1.10", "traceback-with-variables~=2.0.4", - "typing_extensions", # included by Pydantic, adding here since it's now being directly used in code + "typing_extensions>=4.6.1,<5", "xlrd~=2.0.1", "zxcvbn~=4.4.28", "markdownify~=0.11.6",