forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt new Python locator (microsoft#23617)
- Loading branch information
1 parent
d15a2b9
commit 1439637
Showing
7 changed files
with
285 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
// eslint-disable-next-line @typescript-eslint/no-namespace | ||
export namespace Iterable { | ||
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types | ||
export function is<T = any>(thing: any): thing is Iterable<T> { | ||
return thing && typeof thing === 'object' && typeof thing[Symbol.iterator] === 'function'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.