[docs] [issue32212] few discrepancy between source and docs in logging
Michal Plichta
report at bugs.python.org
Mon Dec 4 08:29:07 EST 2017
Michal Plichta <mplichta at gmail.com> added the comment:
see at typeshed:
https://github.com/python/typeshed/blob/master/stdlib/2and3/logging/__init__.pyi#L147
def setLevel(self, lvl: Union[int, str]) -> None: ...
def setFormatter(self, form: 'Formatter') -> None: ...
this match python documentation:
Handler.setLevel(lvl)
Handler.setFormatter(form)
but is source code (logging/__init__.py):
def setFormatter(self, fmt):
self.formatter = f
def setLevel(self, level):
self.level = _checkLevel(level)
This is not big deal but keyworded arguments have different names fmt, form and level, lvl.
Some tools which perform static code verification are base of *.pyi from typeshed repo and some form source code.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32212>
_______________________________________
More information about the docs
mailing list