Hide args from repr for Command.CommandObj

This commit is contained in:
Alex Root Junior 2018-07-13 23:59:39 +03:00
parent b647eb476a
commit 23211fc283

View file

@ -1,7 +1,7 @@
import inspect import inspect
import re import re
from contextvars import ContextVar from contextvars import ContextVar
from dataclasses import dataclass from dataclasses import dataclass, field
from typing import Any, Dict, Iterable, Optional, Union from typing import Any, Dict, Iterable, Optional, Union
from aiogram import types from aiogram import types
@ -73,7 +73,7 @@ class Command(Filter):
prefix: str = '/' prefix: str = '/'
command: str = '' command: str = ''
mention: str = None mention: str = None
args: str = None args: str = field(repr=False, default=None)
@property @property
def mentioned(self) -> bool: def mentioned(self) -> bool: