Compare commits
2 Commits
707df3f27d
...
f31522dcd9
Author | SHA1 | Date | |
---|---|---|---|
f31522dcd9 | |||
a83607fd81 |
@ -15,11 +15,11 @@ __title__ = 'cpl_query'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
|
||||
__version__ = '2021.10.0'
|
||||
__version__ = '2021.10.0.post1'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
# imports:
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0.post1')
|
||||
|
@ -15,11 +15,11 @@ __title__ = 'cpl_query._extension'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
|
||||
__version__ = '2021.10.0'
|
||||
__version__ = '2021.10.0.post1'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
# imports:
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0.post1')
|
||||
|
@ -15,11 +15,11 @@ __title__ = 'cpl_query._query'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
|
||||
__version__ = '2021.10.0'
|
||||
__version__ = '2021.10.0.post1'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
# imports:
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0.post1')
|
||||
|
@ -4,7 +4,7 @@
|
||||
"Version": {
|
||||
"Major": "2021",
|
||||
"Minor": "10",
|
||||
"Micro": "0"
|
||||
"Micro": "0.post1"
|
||||
},
|
||||
"Author": "Sven Heidemann",
|
||||
"AuthorEmail": "sven.heidemann@sh-edraft.de",
|
||||
|
@ -15,11 +15,11 @@ __title__ = 'cpl_query.extension'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
|
||||
__version__ = '2021.10.0'
|
||||
__version__ = '2021.10.0.post1'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
# imports:
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0')
|
||||
version_info = VersionInfo(major='2021', minor='10', micro='0.post1')
|
||||
|
@ -27,7 +27,8 @@ class IterableABC(ABC, list):
|
||||
def all(self, func: Callable) -> bool: pass
|
||||
|
||||
def append(self, __object: object) -> None:
|
||||
if self._type is not None and type(__object) != self._type and not isinstance(type(__object), self._type):
|
||||
if self._type is not None and type(__object) != self._type and not isinstance(type(__object), self._type) \
|
||||
and not issubclass(type(__object), self._type):
|
||||
raise Exception(f'Unexpected type: {type(__object)}')
|
||||
|
||||
if len(self) == 0 and self._type is None:
|
||||
|
Loading…
Reference in New Issue
Block a user