Queer European MD passionate about IT
소스 검색

Dummy coroutine

Davte 5 년 전
부모
커밋
3decb01165
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      davtelepot/utilities.py

+ 5 - 0
davtelepot/utilities.py

@@ -1518,3 +1518,8 @@ def make_inline_query_answer(answer):
     if type(answer) is dict:
         answer = [answer]
     return answer
+
+
+async def dummy_coroutine(*args, **kwargs):
+    """Accept everthing as argument and do nothing."""
+    return