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 — port null check for specific type creation (#1180) · microsoft/python-language-server@4f81ba2

This repository was archived by the owner on Apr 14, 2022. It is now read-only.

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src/Analysis/Ast/Impl/Types
    • PythonFunctionOverload.cs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/Analysis/Ast/Impl/Types/PythonFunctionOverload.cs‎

Copy file name to clipboardExpand all lines: src/Analysis/Ast/Impl/Types/PythonFunctionOverload.cs
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ private IMember GetSpecificReturnType(IPythonClassType selfClassType, IArgumentS
157157

158158
case IGenericType gt when args != null: // -> CLASS[T] on standalone function (i.e. -> List[T]).
159159
var typeArgs = ExpressionEval.GetTypeArgumentsFromParameters(this, args);
160-
Debug.Assert(typeArgs != null);
161-
return gt.CreateSpecificType(typeArgs);
160+
if (typeArgs != null) {
161+
return gt.CreateSpecificType(typeArgs);
162+
}
163+
break;
162164
}
163165

164166
return StaticReturnValue;

0 commit comments

Comments
0 (0)
You are visitor 01402520 — 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.