Skip to content

Commit 40d9e58

Browse files
committed
Add Schema hint to __schema method
1 parent 52376b9 commit 40d9e58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

detection_rules/mixins.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from typing import TypeVar, Type
88

99
import marshmallow_dataclass
10+
from marshmallow import Schema
1011

1112
from .utils import cached
1213

@@ -30,7 +31,7 @@ class MarshmallowDataclassMixin:
3031

3132
@classmethod
3233
@cached
33-
def __schema(cls):
34+
def __schema(cls: ClassT) -> Schema[ClassT]:
3435
"""Get the marshmallow schema for the data class"""
3536
return marshmallow_dataclass.class_schema(cls)()
3637

0 commit comments

Comments
 (0)