8000 Use variable annotations by hauntsaninja · Pull Request #10723 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Use variable annotations #10723

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

Merged
merged 10 commits into from
Jun 28, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix tests part 4 of ???
  • Loading branch information
hauntsaninja committed Jun 26, 2021
commit c1eaee85f3512846ff8b7d03328d97dcd3b528e7
3 changes: 2 additions & 1 deletion mypy/sitepkgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from typing import List


def getsitepackages() -> "List[str]":
def getsitepackages():
# type: () -> List[str]
if hasattr(site, 'getusersitepackages') and hasattr(site, 'getsitepackages'):
user_dir = site.getusersitepackages()
return site.getsitepackages() + [user_dir]
Expand Down
0