Skip to content

Commit

Permalink
mypy: pglookout/current-master.py [BF-1560]
Browse files Browse the repository at this point in the history
Also in this commit:
- removed `python2` leftovers (from pglookout 2.0.0 (2018-10-12))
  • Loading branch information
Samuel Giffard committed Mar 17, 2023
1 parent d91d6f0 commit 6004db7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
export PYBUILD_NAME=pglookout

%:
dh $@ --with python2 --with systemd --buildsystem=pybuild
dh $@ --with python3 --with systemd --buildsystem=pybuild
4 changes: 2 additions & 2 deletions pglookout/current_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
See the file `LICENSE` for details.
"""

from __future__ import print_function
from __future__ import annotations

from . import version

Expand All @@ -19,7 +19,7 @@
import time


def main(args=None):
def main(args: list[str] | None = None) -> int:
if args is None:
args = sys.argv[1:]

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ exclude = [
'pglookout/__main__.py',
'pglookout/cluster_monitor.py',
'pglookout/common.py',
'pglookout/current_master.py',
'pglookout/logutil.py',
'pglookout/pglookout.py',
'pglookout/pgutil.py',
Expand Down

0 comments on commit 6004db7

Please sign in to comment.