kopia lustrzana https://github.com/tsileo/little-boxes
Fix typing
rodzic
7a50b91067
commit
e77cb46d08
|
@ -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}")
|
||||
|
|
Ładowanie…
Reference in New Issue