Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.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 | e627cc25b6f3 |
children | b7afc38468bd |
comparison
equal
deleted
inserted
replaced
52669:e627cc25b6f3 | 52670:4cb75772818d |
---|---|
228 # _reqexithandlers: callbacks run at the end of a request | 228 # _reqexithandlers: callbacks run at the end of a request |
229 _reqexithandlers: List = [] | 229 _reqexithandlers: List = [] |
230 | 230 |
231 | 231 |
232 class ui: | 232 class ui: |
233 def __init__(self, src: Optional["ui"] = None) -> None: | 233 def __init__(self, src: Optional[ui] = None) -> None: |
234 """Create a fresh new ui object if no src given | 234 """Create a fresh new ui object if no src given |
235 | 235 |
236 Use uimod.ui.load() to create a ui which knows global and user configs. | 236 Use uimod.ui.load() to create a ui which knows global and user configs. |
237 In most cases, you should use ui.copy() to create a copy of an existing | 237 In most cases, you should use ui.copy() to create a copy of an existing |
238 ui object. | 238 ui object. |