kopia lustrzana https://github.com/tsileo/little-boxes
Fix type annotations
rodzic
4886619f77
commit
9819a43cfe
|
@ -614,7 +614,7 @@ class Person(BaseActivity):
|
|||
elif isinstance(self.url, dict):
|
||||
if self.url.get("type") != "Link":
|
||||
raise BadActivityError(f"invalid type {self.url}")
|
||||
return self.url.get("href")
|
||||
return str(self.url.get("href"))
|
||||
else:
|
||||
raise BadActivityError(f"invalid type for {self.url}")
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue