Add typings for audit logs, integrations, and webhooks

This commit is contained in:
Nadir Chowdhury authored and GitHub committed 2021-04-10 02:53:24 -04:00
1 parent 68aef92b37
commit 3e92196a2b
8 files changed
+386 -52

No files matched your search

+2 -2
View File
@@ -25,7 +25,7 @@ DEALINGS IN THE SOFTWARE.
import array
import asyncio
import collections.abc
from typing import Optional, overload
from typing import Any, Optional, overload
import unicodedata
from base64 import b64encode
from bisect import bisect_left
@@ -325,7 +325,7 @@ def _unique(iterable):
adder = seen.add
return [x for x in iterable if not (x in seen or adder(x))]
def _get_as_snowflake(data, key):
def _get_as_snowflake(data: Any, key: str) -> Optional[int]:
try:
value = data[key]
except KeyError: