mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 10:11:52 +00:00
Minor refactoring:
- removed remaining assertions - quotes replaced with double quotes in f-strings
This commit is contained in:
parent
5a905abe87
commit
70fb332fd3
5 changed files with 9 additions and 7 deletions
|
|
@ -24,7 +24,8 @@ class Version:
|
|||
|
||||
@version.setter
|
||||
def version(self, version):
|
||||
assert isinstance(version, (tuple, list))
|
||||
if not isinstance(version, (tuple, list)):
|
||||
raise TypeError(f"`version` must be an instance of tuple/list, not {type(version)}")
|
||||
self.__raw_version = version
|
||||
self.__version = None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue