From cdc5d43330b7affaddfa74bab611babd991cddb4 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 8 Jan 2021 18:02:42 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Give=20a=20default=20value=20to?= =?UTF-8?q?=20the=20files=20kwarg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet/engineer/bullet.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/royalnet/engineer/bullet.py b/royalnet/engineer/bullet.py index 2aa02156..46d623f1 100644 --- a/royalnet/engineer/bullet.py +++ b/royalnet/engineer/bullet.py @@ -22,7 +22,6 @@ import royalnet.royaltyping as t import abc import datetime import sqlalchemy.orm -import io from . import exc @@ -86,7 +85,7 @@ class Message(Bullet, metaclass=abc.ABCMeta): async def send_reply(self, *, text: str = None, - files: t.List[t.BinaryIO]) -> t.Optional[Message]: + files: t.List[t.BinaryIO] = None) -> t.Optional[Message]: """ Reply to this message in the same channel it was sent in. @@ -124,7 +123,7 @@ class Channel(Bullet, metaclass=abc.ABCMeta): async def send_message(self, *, text: str = None, - files: t.List[t.BinaryIO]) -> t.Optional[Message]: + files: t.List[t.BinaryIO] = None) -> t.Optional[Message]: """ Send a message in the channel. @@ -157,7 +156,7 @@ class User(Bullet, metaclass=abc.ABCMeta): async def send_message(self, *, text: str = None, - files: t.List[t.BinaryIO]) -> t.Optional[Message]: + files: t.List[t.BinaryIO] = None) -> t.Optional[Message]: """ Send a private message to the user.