From 216a7c0b19ef2d31699a90cd7635e1d9d33d7616 Mon Sep 17 00:00:00 2001 From: Pavel Perestoronin Date: Tue, 25 Apr 2023 13:52:54 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Mypy's=20=C2=ABmissing=20positional=20ar?= =?UTF-8?q?gument=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pure_protobuf/annotations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pure_protobuf/annotations.py b/pure_protobuf/annotations.py index 6f774a9..f81ff46 100644 --- a/pure_protobuf/annotations.py +++ b/pure_protobuf/annotations.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from sys import version_info -from typing import TYPE_CHECKING, Any, NewType, Optional, Union +from typing import TYPE_CHECKING, Any, ClassVar, NewType, Optional, Union from pure_protobuf.exceptions import IncorrectAnnotationError from pure_protobuf.helpers._dataclasses import SLOTS @@ -30,7 +30,7 @@ class Field: """ if version_info >= (3, 10): - _: KW_ONLY + _: ClassVar[KW_ONLY] packed: Union[bool, Sentinel] = DEFAULT """Specifies whether the field should be packed in its serialized representation."""