Skip to content

Commit 94ae060

Browse files
author
Mikhail Arkhipov
authored
Remove not implemented exception (microsoft#1982)
* Remove stale reference * Don't suppress LHS diagnostics on augmented assign * Revert "Don't suppress LHS diagnostics on augmented assign" This reverts commit 6109ac7. * Escape [ and ] * PR feedback * Remove exception
1 parent 912ee69 commit 94ae060

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Analysis/Ast/Impl/Types/Collections/PythonCollectionType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public override IMember Index(IPythonInstance instance, IArgumentSet args)
6767
=> (instance as IPythonCollection)?.Index(args) ?? UnknownType;
6868

6969
public IPythonType CreateSpecificType(IArgumentSet typeArguments) {
70-
throw new NotImplementedException();
70+
return this;
7171
}
7272

7373
#endregion

src/Parsing/Impl/Ast/TypeAnnotation.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ public TypeAnnotation(PythonLanguageVersion version, Expression expr) {
2727
Expression = expr ?? throw new ArgumentNullException(nameof(expr));
2828
}
2929

30-
public static TypeAnnotation FromType<T>(TypeAnnotationConverter<T> converter, T type) where T : class
31-
=> throw new NotImplementedException();
32-
3330
public PythonLanguageVersion LanguageVersion { get; }
3431
public Expression Expression { get; }
3532

0 commit comments

Comments
 (0)