Commit Graph

1501 Commits

Author SHA1 Message Date
Eric Traut
95b7b3488e
Merge pull request #467 from rubenbelem/patch-1
Correction of README.md
2020-01-02 08:54:36 -07:00
Rúben Belém
ca8544384b
Correction of README.md
There was two "VS Code Integration" sessions, and the first had an incomplete content similar to the content of the second one.
2020-01-02 10:05:42 -04:00
Eric Traut
b039f6c118 Fixed error in comment. 2020-01-02 01:39:45 -07:00
Eric Traut
a25e832ad4 Added support for PEP 562's __getattr__ function. 2020-01-02 01:37:41 -07:00
Eric Traut
70753ed778 Fixed bug in type checking logic for homogenous tuples of arbitrary length. 2020-01-02 00:05:25 -07:00
Eric Traut
fe0692bd29 Fixed signature provider so it works with decorator calls. 2019-12-31 08:48:18 -07:00
Eric Traut
b93772e9d3 Fixed bug in handling of Protocol classes with generic type arguments. 2019-12-28 10:59:29 -07:00
Eric Traut
0a7f4dbb46 More formatting. 2019-12-28 10:57:27 -07:00
Eric Traut
6fa3c1809c Made indentation more consistent for multi-line if statements. 2019-12-28 10:20:35 -07:00
Eric Traut
5263dd7d45 Published 1.1.16 2019-12-27 23:15:57 -07:00
Eric Traut
edc0a0e8f3 Fixed recent regression in completion provider that caused a crash. 2019-12-27 23:12:45 -07:00
Eric Traut
536312919e Fixed bug that resulted in forward references to type aliases being reported as unbound. 2019-12-27 10:41:03 -07:00
Eric Traut
dfcf032223 Published 1.1.15 2019-12-26 14:33:21 -07:00
Eric Traut
3a053e33dd Added support for string literal completion suggestions in assignment statements. 2019-12-26 14:29:09 -07:00
Eric Traut
3862dd5dff Added support for literal string value type completion suggestions for arguments. Moved common code out of signature help provider into type evaluator. 2019-12-26 14:03:40 -07:00
Eric Traut
f068baa600 Added support for None as a type parameter for Literal. 2019-12-25 09:51:57 -07:00
Eric Traut
9738db032e Fixed bug in handling of generic type parameters within a class declaration. Added error for classes that attempt to derive from Generic more than once. 2019-12-25 09:42:13 -07:00
Eric Traut
5e2108a54e Eliminated unused variables and imports. 2019-12-25 01:18:02 -07:00
Eric Traut
49d2a70129 Fixed bug where function was not identified as a generator if its yield statements were unreachable. 2019-12-25 00:40:06 -07:00
Eric Traut
a04e68f7d6 Published 1.1.14 2019-12-24 16:55:15 -07:00
Eric Traut
c233d8e51a Fixed bug in test. 2019-12-24 16:52:42 -07:00
Eric Traut
13edda0e57 Added tests for reportSelfClsParameterName setting. 2019-12-24 16:51:48 -07:00
Eric Traut
d87356c076 Added reportSelfClsParameterName setting and defaulted it to warning. 2019-12-24 13:30:57 -07:00
Eric Traut
f689312051 Added completion support for string literals used for TypedDict index expressions. 2019-12-24 00:41:55 -07:00
Eric Traut
9c4b4cd5bc Fixed bug in f-string parsing that resulted in incorrect error reporting when expressions within f-string contained string literals with curly braces or with nested string literals (including nested f-strings). 2019-12-23 14:24:53 -07:00
Eric Traut
cf24dd690c Fixed bug where callable class members were not being bound to instance as part of member access operator. As part of this fix, removed the FunctionTypeFlags.InstanceMethod flag, which is now implicit if SStaticMethod, ClassMethod or ConstructorMethod are not set. 2019-12-23 11:08:24 -07:00
Eric Traut
87a07022a6 Switched from tslint to eslint. 2019-12-23 00:04:12 -07:00
Eric Traut
5f16b93f26 Added synthesized overloaded "get" methods for TypedDict classes. 2019-12-22 16:04:18 -07:00
Eric Traut
a98c1b9fc1 Added comments for function type flags. 2019-12-22 14:05:22 -07:00
Eric Traut
d83869d8d8 Added link to gitter channel. 2019-12-22 13:38:58 -07:00
Eric Traut
10948fb150 Published 1.1.13 2019-12-22 11:52:33 -07:00
Eric Traut
52e382e3e6 Fixed bug in decorator processing that caused cached_property to always evaluate the property type as Unknown. 2019-12-22 11:48:37 -07:00
Eric Traut
419e1ade8c Added error condition to detect Protocol class passed as second argument to isinstance or issubclass. 2019-12-21 11:54:09 -07:00
Eric Traut
3e70559441 Added error condition for wildcard import that's not at the module scope. 2019-12-21 11:14:12 -07:00
Eric Traut
c844c2ffe8 Improved wildcard import logic. It now attempts to honor __all__ assignment in target module. If __all__ is not defined, all symbols except for those starting with an underscore are imported. 2019-12-21 08:31:14 -07:00
Eric Traut
7ea5dac6c2 Added support for AsyncIterable as a declared return type for an async generator. 2019-12-21 07:20:56 -07:00
Eric Traut
bdf06ba4b0 Added special-cases support in type constraint logic for types Tuple[()] and Literal[False], both of which are always falsy. 2019-12-21 07:04:40 -07:00
Eric Traut
1eeafe9404 Added special-case type printing logic for Tuple[()]. 2019-12-21 06:50:08 -07:00
Eric Traut
c7455da85f Published 1.1.12 2019-12-21 06:24:37 -07:00
Eric Traut
dae92eeaed Fixed bug that caused VS Code settings (including python.pythonPath) to be ignored in some situations — most notably when a Python source file is opened outside of the context of a workspace. 2019-12-21 06:16:51 -07:00
Eric Traut
15cbd2744e Added missing support for AsyncIterator return type annotations for async generator functions. 2019-12-21 05:58:16 -07:00
Eric Traut
68bab32567 Added test project6 for use in completion provider test. 2019-12-21 01:40:33 -07:00
Eric Traut
427c834a30 Improved markdown formatting for completion provider output. 2019-12-21 01:34:02 -07:00
Eric Traut
6f0fd27d6b Added support for overloaded __get__ method. 2019-12-21 00:47:57 -07:00
Eric Traut
c795854988 Fixed several bugs in hover and completion providers related to modules and submodules. 2019-12-20 22:34:38 -07:00
Eric Traut
546df5da08 Detect the case where a subclass attempts to override a non-method (like a property) with a method. Also handle the case where a subclass overrides an overloaded method in the base class. 2019-12-20 09:36:17 -07:00
Eric Traut
d7d6af505e Checked in missing test. 2019-12-20 09:18:09 -07:00
Eric Traut
980c42862b Fixed text formatting issue in completion provider — missing colon between function name and type. 2019-12-19 11:44:30 -07:00
Eric Traut
14fb3b98f1 Eliminated the hard-coded white list of exported symbols from builtins.pyi. This kludgey mechanism was added before I fully understood the rules defined in PEP 484 for which symbols are exposed from stub files. By following these rules, the white list is no longer required. 2019-12-19 10:44:59 -07:00
Eric Traut
e5c00f3938 Published 1.1.11 2019-12-18 18:41:38 -07:00