Skip to content

add __init__ to Logger#1415

Merged
gvanrossum merged 2 commits intopython:masterfrom
amstree:logger-init
Jun 20, 2017
Merged

add __init__ to Logger#1415
gvanrossum merged 2 commits intopython:masterfrom
amstree:logger-init

Conversation

@amstree
Copy link
Copy Markdown
Contributor

@amstree amstree commented Jun 18, 2017

Comment thread stdlib/2and3/logging/__init__.pyi Outdated

class Logger:
name = ... # type: str
name = ... # type: Text
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Text maps to unicode, on Python 2, but name can be a (byte)string, as well. I think str was a better annotation here, unless you actually want to create Loggers with a unicode name on Python 2.

@gvanrossum gvanrossum merged commit b8a9604 into python:master Jun 20, 2017
@gvanrossum
Copy link
Copy Markdown
Member

I assume @matthias would be satisfied with the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants