Skip to content

Commit 4462874

Browse files
authored
Add type hint for Model.get_attributes (pynamodb#589)
1 parent d19b1c1 commit 4462874

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pynamodb/models.pyi

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from .attributes import Attribute
12
from .exceptions import DoesNotExist as DoesNotExist
23
from typing import Any, Dict, Generic, Iterable, Iterator, List, Optional, Sequence, Tuple, Type, TypeVar, Text, Union
34

@@ -125,7 +126,9 @@ class Model(metaclass=MetaModel):
125126
@classmethod
126127
def get_throttle(cls): ...
127128
@classmethod
128-
def _get_attributes(cls) -> Dict[str, Any]: ...
129+
def get_attributes(cls) -> Dict[str, Attribute]: ...
130+
@classmethod
131+
def _get_attributes(cls) -> Dict[str, Attribute]: ...
129132
@classmethod
130133
def _get_connection(cls) -> TableConnection: ...
131134

0 commit comments

Comments
 (0)