Skip to content

Commit 413a347

Browse files
committed
fix: typing issues
1 parent 18c75ae commit 413a347

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/polywrap-msgpack/polywrap_msgpack/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
custom extension types defined by wrap standard
99
"""
1010
from enum import Enum
11-
from typing import Any, Dict, List, Set
11+
from typing import Any, Dict, List, Set, cast
1212

1313
import msgpack
1414
from msgpack.exceptions import UnpackValueError
@@ -73,7 +73,7 @@ def sanitize(value: Any) -> Any:
7373
if hasattr(value, s)
7474
}
7575
if hasattr(value, "__dict__"):
76-
return {k: sanitize(v) for k, v in vars(value).items()}
76+
return {k: sanitize(v) for k, v in cast(Dict[Any, Any], vars(value)).items()}
7777
return value
7878

7979

0 commit comments

Comments
 (0)