Skip to content
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

Fix all reportMissingImports #333

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Nov 7, 2024

No description provided.

def set_units(self, u: None | timezone | float | BasicUnit) -> None: ...
def get_units(self) -> None | timezone | float | BasicUnit: ...
def set_units(self, u) -> None: ...
def get_units(self): ...
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be generic, rather than adding random third-party types that may be used (or maybe this comes from some old matplotlib stuff?). Anyway, matplotlib now provides its own types.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I believe we kept these stubs for users that are still using matplotlib 3.7 and earlier.

@@ -5,6 +5,7 @@ pyright

# Typed libraries and stubs
matplotlib>=3.8
pandas-stubs
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pandas is imported by matplotlib, networkx, sklearn, skimage and vispy

@Avasam Avasam force-pushed the Fix-all-reportMissingImports branch from e45e60a to 7bb3d5b Compare November 7, 2024 02:04
@Avasam Avasam force-pushed the Fix-all-reportMissingImports branch 3 times, most recently from 3715ee2 to 60cecea Compare November 7, 2024 22:47
@Avasam Avasam force-pushed the Fix-all-reportMissingImports branch from 60cecea to 97b7a6c Compare November 7, 2024 23:10
@debonte debonte merged commit 8c692c3 into microsoft:main Nov 7, 2024
3 checks passed
@Avasam Avasam deleted the Fix-all-reportMissingImports branch November 7, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants