From ae5b28ff37a85c8ad45442a001b420d2a64e2d97 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Thu, 29 Jun 2023 00:57:25 +0300 Subject: [PATCH] Stricter pyright checks for `inifile` (#10382) --- pyrightconfig.stricter.json | 1 - stubs/inifile/inifile.pyi | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index 2fe331589..110f559be 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -52,7 +52,6 @@ "stubs/protobuf", "stubs/google-cloud-ndb", "stubs/influxdb-client", - "stubs/inifile", "stubs/passlib", "stubs/peewee", "stubs/pexpect", diff --git a/stubs/inifile/inifile.pyi b/stubs/inifile/inifile.pyi index ec8c93226..a4cf997e8 100644 --- a/stubs/inifile/inifile.pyi +++ b/stubs/inifile/inifile.pyi @@ -45,7 +45,7 @@ class Dialect: def linesep(self) -> str | None: ... def get_actual_linesep(self) -> str: ... def get_strippable_lineseps(self) -> str: ... - def kv_serialize(self, key, val: str | None) -> str | None: ... + def kv_serialize(self, key: str, val: str | None) -> str | None: ... def escape(self, value: str, quote: str | None = ...) -> str: ... def unescape(self, value: str) -> str: ... def to_string(self, value: bool | float | str) -> str: ...