GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Detect invalid value for --custom-typeshed-dir (#9985) · python/mypy@4d5a1bc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • mypy
    • modulefinder.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎mypy/modulefinder.py‎

Copy file name to clipboardExpand all lines: mypy/modulefinder.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,11 @@ def default_lib_path(data_dir: str,
509509

510510
if custom_typeshed_dir:
511511
typeshed_dir = os.path.join(custom_typeshed_dir, "stdlib")
512+
versions_file = os.path.join(typeshed_dir, "VERSIONS")
513+
if not os.path.isdir(typeshed_dir) or not os.path.isfile(versions_file):
514+
print("error: --custom-typeshed-dir does not point to a valid typeshed ({})".format(
515+
custom_typeshed_dir))
516+
sys.exit(2)
512517
else:
513518
auto = os.path.join(data_dir, 'stubs-auto')
514519
if os.path.isdir(auto):

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.