Skip to content

Add FileHandler properties #1834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2018

Conversation

ExplodingCabbage
Copy link
Contributor

Resolves #1833

@ExplodingCabbage
Copy link
Contributor Author

(Completely untested right now - haven't checked how to test, yet. Will do when I get the chance, or someone else can do so for me.)

@gvanrossum
Copy link
Member

You should write some code that exercises the various forms of the API, and run it to make sure it runs error-free, and then type-check it.

We prefer not to have such test code in the typeshed repo, however, because this would essentially duplicate the actual runtime tests for the library. And yet, type-checking those runtime tests often will fail for other reasons. See #754 for more discussion.

@@ -373,6 +373,10 @@ class StreamHandler(Handler):


class FileHandler(Handler):
baseFilename = ... # type: str
Copy link
Member

Choose a reason for hiding this comment

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

Prefer PEP 526-style annotations (e.g. baseFilename: str).

@JelleZijlstra JelleZijlstra merged commit 0c2249f into python:master Feb 17, 2018
@ExplodingCabbage ExplodingCabbage deleted the fix-filehandler branch February 28, 2018 00:04
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