Fixed typing in count function of cpl_query

This commit is contained in:
Sven Heidemann 2022-01-08 18:09:03 +01:00
parent 025286052b
commit 1f445a99b2
5 changed files with 9 additions and 9 deletions

View File

@ -15,11 +15,11 @@ __title__ = 'cpl_query'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
__version__ = '2021.11.0.post1'
__version__ = '2021.11.0.post2'
from collections import namedtuple
# imports:
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2021', minor='11', micro='0.post1')
version_info = VersionInfo(major='2021', minor='11', micro='0.post2')

View File

@ -15,11 +15,11 @@ __title__ = 'cpl_query._query'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
__version__ = '2021.11.0.post1'
__version__ = '2021.11.0.post2'
from collections import namedtuple
# imports:
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2021', minor='11', micro='0.post1')
version_info = VersionInfo(major='2021', minor='11', micro='0.post2')

View File

@ -4,7 +4,7 @@
"Version": {
"Major": "2021",
"Minor": "11",
"Micro": "0.post1"
"Micro": "0.post2"
},
"Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de",

View File

@ -15,7 +15,7 @@ __title__ = 'cpl_query.extension'
__author__ = 'Sven Heidemann'
__license__ = 'MIT'
__copyright__ = 'Copyright (c) 2020 - 2021 sh-edraft.de'
__version__ = '2021.11.0.post1'
__version__ = '2021.11.0.post2'
from collections import namedtuple
@ -27,4 +27,4 @@ from .ordered_iterable_abc import OrderedIterableABC
from .ordered_iterable import OrderedIterable
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major='2021', minor='11', micro='0.post1')
version_info = VersionInfo(major='2021', minor='11', micro='0.post2')

View File

@ -100,7 +100,7 @@ class IterableABC(ABC, list):
pass
@abstractmethod
def count(self, func: Callable) -> int:
def count(self, func: Callable = None) -> int:
r"""Returns length of list or count of found elements
Parameter
@ -115,7 +115,7 @@ class IterableABC(ABC, list):
pass
@abstractmethod
def distinct(self, func: Callable) -> 'IterableABC':
def distinct(self, func: Callable = None) -> 'IterableABC':
r"""Returns list without redundancies
Parameter