pull/9/head
Thomas Sileo 2018-07-11 20:09:22 +02:00
rodzic 7a50b91067
commit e77cb46d08
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -332,9 +332,9 @@ class BaseActivity(object, metaclass=_ActivityMeta):
pass
def _actor_id(self, obj: ObjectOrIDType) -> str:
if isinstance(obj, dict) and _has_type(
if isinstance(obj, dict) and _has_type( # type: ignore
obj["type"], ACTOR_TYPES
): # type: ignore
):
obj_id = obj.get("id")
if not obj_id:
raise BadActivityError(f"missing object id: {obj!r}")