Skip to content

Commit d2696d2

Browse files
committed
chore: Update to pyright 1.1.367
1 parent 7c244de commit d2696d2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ vcrpy = ">=4.3.0,!=4.3.1,<4.4.0" # v4.3.1 broke decode_compressed_response
1818
urllib3 = "<2" # pin until https://github.com/kevin1024/vcrpy/issues/688 is fixed
1919
scriv = { version = "*", extras = ["toml"] }
2020
responses = ">=0.23.1,<0.24.0"
21-
pyright = "==1.1.313"
21+
pyright = "==1.1.367"

pygitguardian/models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# pyright: reportIncompatibleVariableOverride=false
2+
# Disable this check because of multiple non-dangerous violations (SCHEMA variables,
3+
# BaseSchema.Meta class)
14
from dataclasses import dataclass, field
25
from datetime import date, datetime
36
from enum import Enum
@@ -138,7 +141,9 @@ class DetailSchema(BaseSchema):
138141
detail = fields.String(required=True)
139142

140143
@pre_load
141-
def rename_errors(self, data: Dict[str, Any], many: bool, **kwargs: Any) -> Dict:
144+
def rename_errors(
145+
self, data: Dict[str, Any], many: bool, **kwargs: Any
146+
) -> Dict[str, Any]:
142147
error = data.pop("error", None)
143148
if error is not None:
144149
data["detail"] = str(error)

0 commit comments

Comments
 (0)