-
Notifications
You must be signed in to change notification settings - Fork 20
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
mypy: Add type hints to pglookout [BF-1560] #106
Open
Mulugruntz
wants to merge
24
commits into
main
Choose a base branch
from
sgiffard/BF-1560_add_type_hints
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
0d4ea2c
mypy: `pglookout/logutil.py` [BF-1560]
238eb76
mypy: `pglookout/pgutil.py` [BF-1560]
3db5684
mypy: `pglookout/current-master.py` [BF-1560]
2ce13ab
mypy: `pglookout/statsd.py` [BF-1560]
25617d1
mypy: `pglookout/common.py` [BF-1560]
016d14d
mypy: `pglookout/config.py` [BF-1560]
bf067b3
mypy: `pglookout/common_types.py` [BF-1560]
a462bf9
mypy: `pglookout/webserver.py` [BF-1560]
9b4e13f
mypy: `pglookout/cluster_monitor.py` [BF-1560]
45d413b
mypy: `pglookout/pglookout.py` [BF-1560]
6ce993e
mypy: Refactor `check_cluster_state` [BF-1560]
0d438e9
mypy: `test/test_pglookout.py` [BF-1560]
1f47155
mypy: New method to normalize config [BF-1560]
5d4ac6e
mypy: `version.py` [BF-1560]
51bb85e
mypy: `setup.py` [BF-1560]
e9834d4
mypy: Remove python2 dependency [BF-1560]
a3ad6f8
mypy: `conftest.py` [BF-1560]
7434873
Bump `Makefile` version to `2.1.0` [BF-1560]
30bcd0d
mypy: Compatible with Python 3.9 logging [BF-1560]
e4e771a
pylint: Enable more messages [BF-1560]
56c01a8
pylint: Fix broad exception raised [BF-1560]
09a15b1
pylint: Dev requirements are now pinned [BF-1560]
9a0abae
make: Dev reqs are now in isolation [BF-1560]
dac0aad
Merge remote-tracking branch 'origin/main' into sgiffard/BF-1560_add_…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question Why not using enumerations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is checked at static type checking time (when running
mypy
) and is ignored at runtime.An enumeration is an actual runtime "thing" (type+value). I don't want to change anything in these PRs (or as little as possible).