-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Merge simple type annotations from typeshed #4504
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
Changes from all commits
4eef53a
6badc78
018558a
a36c2fd
908d166
e2afdba
5432664
8f2678e
ac03f3e
8f26a1e
23412b8
6e8e63e
2b3112e
c5fa403
bd694d3
33106f1
c8959bd
96453cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,8 @@ | |
|
||
from more_itertools import unique_everseen | ||
|
||
from setuptools._path import StrPath | ||
|
||
from ..dist import Distribution | ||
from ..warnings import SetuptoolsDeprecationWarning | ||
|
||
|
@@ -48,14 +50,14 @@ def finalize_options(self): | |
del self.__dict__['data_files'] | ||
self.__updated_files = [] | ||
|
||
def copy_file( | ||
def copy_file( # type: ignore[override] # No overload, str support only | ||
self, | ||
infile, | ||
outfile, | ||
preserve_mode=True, | ||
preserve_times=True, | ||
link=None, | ||
level=1, | ||
infile: StrPath, | ||
outfile: StrPath, | ||
preserve_mode: bool = True, | ||
preserve_times: bool = True, | ||
link: str | None = None, | ||
level: object = 1, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. level: object = 1, This one looks odd, but I suppose that is because it assumes either There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I should maybe change it to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll need to go fix it in typeshed first (or #4689) I'll leave it "as-is" for this PR. You can squash-merge the whole thing once green. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you @Avasam, once the CI finishes running I will squash it. |
||
): | ||
# Overwrite base class to allow using links | ||
if link: | ||
|
@@ -141,7 +143,7 @@ def find_data_files(self, package, src_dir): | |
) | ||
return self.exclude_data_files(package, src_dir, files) | ||
|
||
def get_outputs(self, include_bytecode=True) -> list[str]: | ||
def get_outputs(self, include_bytecode: bool = True) -> list[str]: # type: ignore[override] # Using a real boolean instead of 0|1 | ||
"""See :class:`setuptools.commands.build.SubCommand`""" | ||
if self.editable_mode: | ||
return list(self.get_output_mapping().keys()) | ||
|
Uh oh!
There was an error while loading. Please reload this page.