mirror of
https://github.com/zulip/zulip.git
synced 2026-06-18 21:01:52 +08:00
confirmation: Fix mypy annotation in create_confirmation_link.
This commit is contained in:
parent
7c9694077e
commit
93abac7952
@ -65,7 +65,7 @@ def get_object_from_key(confirmation_key: str,
|
||||
obj.save(update_fields=['status'])
|
||||
return obj
|
||||
|
||||
def create_confirmation_link(obj: Union[ContentType, int], host: str,
|
||||
def create_confirmation_link(obj: ContentType, host: str,
|
||||
confirmation_type: int,
|
||||
url_args: Optional[Dict[str, str]]=None) -> str:
|
||||
key = generate_key()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user