Eric Traut
|
6f30005de1
|
Tweaked settings documentation to make it clear that we're deprecating pyright.openFilesOnly. Added backward compatibility support for python.analysis.openFilesOnly.
|
2020-05-15 15:42:27 -07:00 |
|
Jake Bailey
|
1d56d6765f
|
Fix windows bug, add PEP 604 printing, fix unused variable action, add stubPath and diagnosticMode (#673)
|
2020-05-15 13:01:55 -07:00 |
|
Eric Traut
|
37c3abf734
|
Removed one recent change from buitlins.pyi to zip overload. I think it's problematic and is likely to be backed out of typeshed.
|
2020-05-13 23:53:47 -07:00 |
|
Eric Traut
|
c1917556d1
|
Updated typeshed fallback stubs from the typeshed repo.
|
2020-05-13 23:37:07 -07:00 |
|
Eric Traut
|
3b806dd477
|
Fixed a bug in the handling of overloaded functions. PEP 484 indicates that type checkers should ignore the final non-decorated function when matching a call against a series of overloaded variants for a function.
|
2020-05-13 22:45:17 -07:00 |
|
Eric Traut
|
dc3d11e93d
|
Changed code that infers the return type of a coroutine (async) function that never returns. Previously, it inferred the type as "NoReturn", but it now infers "Awaitable[NoReturn]".
|
2020-05-13 22:33:50 -07:00 |
|
Eric Traut
|
84acd4a380
|
Changed code that prints types (e.g. for hover text) to use "Any" instead of "Unknown" when typeCheckingMode is "off". Also avoided printing type arguments when they're all Any or Unknown when typeCheckingMode is "off".
|
2020-05-13 19:21:05 -07:00 |
|
Eric Traut
|
b484ab634d
|
Fixed misspellings.
|
2020-05-13 19:19:04 -07:00 |
|
Eric Traut
|
e6ddd81727
|
Added support for ".so" and ".dylib" native module files.
|
2020-05-12 21:47:50 -07:00 |
|
Eric Traut
|
98eb39bd5c
|
Fixed bug in auto-import logic for the case where the completed symbol is a submodule within a top-level module.
|
2020-05-12 00:52:58 -07:00 |
|
Eric Traut
|
dc59d156d1
|
Fixed bug that caused incorrect type analysis for a property provided by a specialized form of a generic subclass.
|
2020-05-11 23:57:41 -07:00 |
|
Eric Traut
|
7adb6f204e
|
Published 1.1.36
|
2020-05-09 16:24:31 -07:00 |
|
Eric Traut
|
2e79e7ba9c
|
Special-cased FunctionType and LambdaType to avoid emitting false positives for the reportUnnecessaryIsInstance rule.
|
2020-05-09 16:12:16 -07:00 |
|
Eric Traut
|
098a121a3f
|
Fixed bug that caused file changes not to trigger reanalysis in some cases.
|
2020-05-09 15:33:41 -07:00 |
|
Heejae Chang
|
8e32a2d345
|
Introduced UnboundVariable and UndefinedVariable diagnostic rules and refactored auto import and add tests (#663)
|
2020-05-08 18:55:32 -07:00 |
|
Eric Traut
|
8389012430
|
Updated dependencies.
|
2020-05-08 10:02:06 -07:00 |
|
Eric Traut
|
aaf505b4a9
|
Fixed bug in auto-import feature of type completion where imported module name included "-stubs" on the end if the symbol was resolved to a companion stub package.
|
2020-05-08 08:01:29 -07:00 |
|
Eric Traut
|
d1b8e6456a
|
Fixed regression that caused diagnostics not to be cleared when closing a source file in the editor and openFilesOnly is enabled.
|
2020-05-08 07:14:31 -07:00 |
|
Eric Traut
|
46ec3ac82e
|
Added code to verify that resource manager type implements __exit__ or __aexit__ in addition to its enter counterpart.
|
2020-05-07 18:04:56 -07:00 |
|
Jake Bailey
|
11918674e7
|
Add extraPath support, accept minor versions in version_info, make completion extension async (#662)
|
2020-05-07 16:52:53 -07:00 |
|
Eric Traut
|
c3660d2065
|
Improved error messages related to argument matching. The message now includes the corresponding parameter name and function, which is sometimes not obvious from the context (e.g. in the case of operator overloads or other magic methods). Moved dataclass tests out of fourslash so they're consistent with other checker tests.
|
2020-05-06 18:19:16 -07:00 |
|
Eric Traut
|
b90528e388
|
Fixed bug that caused incorrect error to be reported when assigning a value to an expression involving an index operator (e.g. a[x] = b) where the indexed value had a __setitem__ overload with an unannotated set of parameters.
|
2020-05-06 18:06:04 -07:00 |
|
Eric Traut
|
8d95a44323
|
Added support for the upcoming PEP 604 alternative notation for unions.
|
2020-05-05 22:58:45 -07:00 |
|
Eric Traut
|
a8bc7cda1c
|
Updated heuristics that are used to determine which type to use for constructor calls. In some cases, it's preferable to use the specialized type derived from the call to __init__ . Other times, it's preferable to use the type derived from the call to __new__ .
|
2020-05-05 19:57:34 -07:00 |
|
Eric Traut
|
c9b74d2d04
|
Implemented support for enum literals. Also implemented support for type narrowing for == or != comparisons for types that can be decomposed into a limited number of literals (bool and enum).
|
2020-05-05 10:50:38 -07:00 |
|
Eric Traut
|
e2b66c6c4a
|
Added support for @runtime_checkable decorator, as defined in PEP 544.
|
2020-05-04 18:03:13 -07:00 |
|
Eric Traut
|
a52b86a027
|
Fixed bug that caused auto-import to insert import statements in the wrong place when local typings stubs are used. These imports were treated as part of the local group rather than third-party.
|
2020-05-04 15:23:17 -07:00 |
|
Eric Traut
|
864b1b51ff
|
Published 1.1.35
|
2020-05-02 12:59:45 -07:00 |
|
Eric Traut
|
0f4a920fbd
|
Fixed broken assumption in test case.
|
2020-05-02 12:56:44 -07:00 |
|
Eric Traut
|
d6d92a8574
|
Changed "organize imports" to follow formatting rules of "black" formatter for multi-line imports.
|
2020-05-02 12:48:47 -07:00 |
|
Eric Traut
|
5aba67645b
|
Added the ability for a server to specify which commands should present a cancelable progress dialog and which shouldn't. It was annoying to see a dialog for simple commands like "organize imports". Did some cleanup of comments and variable names.
|
2020-05-02 12:48:20 -07:00 |
|
Eric Traut
|
3b6f5c5c80
|
Fixed regression that broke pyright commands like "organize imports".
|
2020-05-02 12:46:30 -07:00 |
|
Heejae Chang
|
714b5acef1
|
prevent rename from changing library code (#647)
|
2020-04-30 13:50:26 -07:00 |
|
Eric Traut
|
4d6c7e3b65
|
Enhanced the type narrowing logic for isinstance to narrow the type of an Any or Unknown variable to the target type (for positive tests only).
|
2020-04-30 01:10:48 -07:00 |
|
Eric Traut
|
9ec3bc2bda
|
Fixed recent regression where parameter types for functions declared using Callable were omitted in the hover text.
|
2020-04-29 23:05:41 -07:00 |
|
Eric Traut
|
e4541f6688
|
Fixed bug where a string literal used within the first argument of a Callable was interpreted as a string rather than a forward-declared type.
|
2020-04-29 23:04:50 -07:00 |
|
Eric Traut
|
7b46aefb6e
|
Fixed regression that caused "find references" and "rename symbol" to stop working for member variable names outside of the current file.
|
2020-04-29 11:01:54 -07:00 |
|
Eric Traut
|
33c000cd2b
|
Fixed bugs in "find references" logic (which is also used for "rename symbol"). It wasn't properly handling locally-aliased import names. These changes also dramatically speed up "find references" and "rename symbol" operations. Fixed a bug in hover provider where it didn't show the proper type for an imported symbol with a local alias name.
|
2020-04-29 00:17:49 -07:00 |
|
Eric Traut
|
b4aad5dcc5
|
Changed generic type specialization code to treat unspecified type arguments as Unknown (Any) in cases where the TypeVar is constrained.
|
2020-04-28 11:21:05 -07:00 |
|
Eric Traut
|
0f7f21a978
|
Don't dirty a source file and its dependencies just because we receive a file system change event. This is especially important if the file is already open, in which case file system change events are ignored.
|
2020-04-27 23:22:27 -07:00 |
|
Eric Traut
|
76c0a97e5f
|
Small comment cleanup.
|
2020-04-27 23:21:38 -07:00 |
|
Eric Traut
|
73acf569d2
|
Fixed perf bug that caused large numbers of empty diagnostic reports to be sent to the language client when the openFilesOnly was enabled.
|
2020-04-26 10:22:08 -07:00 |
|
Eric Traut
|
deacd774b2
|
Fixed bug that caused the type arguments for a bare "Callable" to be treated as Any rather than Unknown. This resulted in some missed "partially Unknown" errors.
|
2020-04-26 07:00:49 -07:00 |
|
Eric Traut
|
921de3097e
|
Added support for "python.analysis.autoSearchPaths" setting. If enabled (as it is by default), it automatically adds "src" to the import search paths. It is common for workspaces to contain a directory by this name.
|
2020-04-25 14:26:46 -07:00 |
|
Eric Traut
|
175a068bbd
|
Published 1.1.34
|
2020-04-22 08:20:58 -07:00 |
|
Eric Traut
|
3b93d60bd2
|
Fixed regression related to BaseException check.
|
2020-04-22 08:19:18 -07:00 |
|
Eric Traut
|
e935e56bff
|
Fixed bug that caused errant "not derived from BaseException" error if base class type was unknown.
|
2020-04-22 07:59:43 -07:00 |
|
Eric Traut
|
984aff1282
|
Fixed broken tests from previous check-in.
|
2020-04-22 07:59:07 -07:00 |
|
Hugues Valois
|
a97d8f155d
|
Add diagnostic for missing imported source file. (#636)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
|
2020-04-21 16:24:53 -07:00 |
|
Heejae Chang
|
dfa5dc39d2
|
fix crash due to exception on bg and etc (#634)
this PR also includes changes where we set completion as completion after a few characters once completion is up
|
2020-04-21 14:28:56 -07:00 |
|