-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can be removed if asottile/pyupgrade#977 is resolved.
- Loading branch information
Showing
6 changed files
with
39 additions
and
3 deletions.
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
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Type stubs for bits used from `pyupgrade._data`. | ||
Can be removed if https://github.com/asottile/pyupgrade/issues/977 is resolved. | ||
""" | ||
|
||
from typing import NamedTuple | ||
|
||
Version = tuple[int, ...] | ||
|
||
class Settings(NamedTuple): | ||
min_version: Version = ... | ||
keep_percent_format: bool = ... | ||
keep_mock: bool = ... | ||
keep_runtime_typing: bool = ... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"""Type stubs for bits used from `pyupgrade._main`. | ||
Can be removed if https://github.com/asottile/pyupgrade/issues/977 is resolved. | ||
""" | ||
|
||
from typing import Sequence | ||
|
||
from pyupgrade._data import Settings | ||
|
||
def _fix_plugins(contents_text: str, settings: Settings) -> str: ... | ||
def _fix_tokens(contents_text: str) -> str: ... | ||
def main(argv: Sequence[str] | None = None) -> int: ... |