Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/scmposix.py @ 52670:4cb75772818d
pyupgrade: drop the quoting around type annotations
This is the `typing_pep563` fixer in `pyupgrade`. Quoting to delay evaluation
hasn't been necessary since adding `from __future__ import annotations` in
1c5810ce737e.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jan 2025 00:30:55 -0500 |
parents | 24ee91ba9aa8 |
children |
comparison
equal
deleted
inserted
replaced
52669:e627cc25b6f3 | 52670:4cb75772818d |
---|---|
71 os.path.expanduser(b'~/.hgrc'), | 71 os.path.expanduser(b'~/.hgrc'), |
72 os.path.join(confighome, b'hg', b'hgrc'), | 72 os.path.join(confighome, b'hg', b'hgrc'), |
73 ] | 73 ] |
74 | 74 |
75 | 75 |
76 def termsize(ui: "uimod.ui") -> Tuple[int, int]: | 76 def termsize(ui: uimod.ui) -> Tuple[int, int]: |
77 try: | 77 try: |
78 import termios | 78 import termios |
79 | 79 |
80 TIOCGWINSZ = termios.TIOCGWINSZ # unavailable on IRIX (issue3449) | 80 TIOCGWINSZ = termios.TIOCGWINSZ # unavailable on IRIX (issue3449) |
81 except (AttributeError, ImportError): | 81 except (AttributeError, ImportError): |