Commit Graph

1621 Commits

Author SHA1 Message Date
Eric Traut
9fa444a0d3 Published 1.1.9 2019-12-08 22:10:05 -08:00
Eric Traut
b585eada94 Added spaces within format strings so style is consistent. Spaces were removed at some point by tslint. 2019-12-08 20:48:37 -08:00
Eric Traut
3c38c385cc Small code cleanup - no functional change. 2019-12-08 19:27:49 -08:00
Eric Traut
e1c523bd4f Added overload to itertools.count to handle the case where no arguments are passed. 2019-12-08 17:57:51 -08:00
Eric Traut
ddf1402f29 Eliminated specializeTypeVarType method, which is the same as getConcreteTypeFromTypeVar. Changed getConcreteTypeFromTypeVar to return AnyType for constrained types. 2019-12-08 17:57:31 -08:00
Eric Traut
cda2a25a6f Changed type var matching logic for constrained type vars. The previous logic constrained types to an exact match of the specified constraints, whereas derived types should be permitted. It was based on a misreading of PEP 484. 2019-12-08 16:43:55 -08:00
Eric Traut
bd414b856b Fixed regression in include/exclude path processing. 2019-12-08 16:28:07 -08:00
Eric Traut
697997fa6f Added default excludes of **/node_modules and **/__pycache__ because these are almost never intended to be scanned for tracked source files. 2019-12-08 12:43:21 -08:00
Eric Traut
8c8502d4dc Changed file system watcher logic to allocate a single chokidar watcher for all include paths rather than one each. 2019-12-08 12:14:16 -08:00
Eric Traut
6980f20123 Added documentation for using Pyright alongside the Python extension. 2019-12-08 11:12:03 -08:00
Eric Traut
d8e1b5d939 Added support in completion provider for named parameter suggestions within argument lists for call expressions. 2019-12-08 02:20:37 -08:00
Eric Traut
33cf4552c3 Added test case for previous check-in. 2019-12-07 11:06:11 -08:00
Eric Traut
563b7f94e4 Fixed bug in type var matching for contravariant type vars. 2019-12-07 11:01:23 -08:00
Eric Traut
dea79cd52b Deleted obsolete method markFilesChanged. 2019-12-06 20:01:48 -08:00
Eric Traut
a3f114bd12 Updated dependencies. 2019-12-06 19:19:18 -08:00
Eric Traut
f6ebcd9243 Changed *args parameter to be typed as Tuple rather than List, as per the python spec. 2019-12-05 20:18:28 -08:00
Eric Traut
3dc47f15ba Fixed errant "unbound" error for variable that's declared in an outer execution context and referenced via a closure. 2019-12-05 19:39:21 -08:00
Eric Traut
560759afe3 Published 1.1.8 2019-12-04 10:28:31 -08:00
Eric Traut
1bb66de420 Added support for type constraints of the form "X == None" and "X != None". 2019-12-03 23:38:10 -08:00
Eric Traut
f30af50b0e Silenced a noisy error message related to file system watcher. 2019-12-03 19:48:41 -08:00
Eric Traut
576d327452 Added support for property getters, setters and deleters that have generic types for the "self" parameter. 2019-12-03 19:46:54 -08:00
Eric Traut
d9ee01b95b
Merge pull request #389 from heejaechang/mistypeOption
added test for pythonPlatform extraction from json
2019-12-03 13:37:31 -08:00
HeeJae Chang
bddca60c80 added test for pythonPlatform extraction from json 2019-12-03 13:23:56 -08:00
Eric Traut
b958b07a70
Merge pull request #384 from heejaechang/mistypeOption
fixed typo in configoption file
2019-12-02 16:39:28 -08:00
HeeJae Chang
02e208f497 add .vs as one of dir to ignore 2019-12-02 15:27:00 -08:00
HeeJae Chang
5c5eaa3813 fixed a typo where it is checking root rather than python version. 2019-12-02 15:26:32 -08:00
Eric Traut
a8019479f9 Added test case for property return type specialization. 2019-12-02 11:22:48 -08:00
Eric Traut
51ee8dbac8 Fixed bug that caused properties with generic return types to not be specialized correctly. 2019-12-02 11:19:46 -08:00
Eric Traut
25d4c07362 Added missing translation layer that translates configured platform (e.g. "Windows") into the corresponding sys.platform string (e.g. "win32"). 2019-12-01 09:43:46 -08:00
Eric Traut
45f86b2965 Fixed a few punctuation issues. 2019-11-30 10:53:46 -08:00
Eric Traut
ac69188758
Merge pull request #379 from cshesse/patch-5
mention multi-root workspaces in configuration doc
2019-11-30 10:51:58 -08:00
cshesse
bd8212861a
Update configuration.md 2019-11-30 10:50:30 -08:00
Eric Traut
eddc3162cb Changed the behavior of VS Code extension when no pyrightconfig.json is present. It now defaults to include all source files under the root workspace directory. This was already the behavior for the command-line version of pyright. 2019-11-30 09:24:53 -08:00
Eric Traut
e367ed0ac0 Published 1.1.7 2019-11-30 00:15:10 -08:00
Eric Traut
3ef9e5bc82 Added test case for reportIncompatibleMethodOverride option. Added "related information" diagnostic for this case. 2019-11-30 00:08:53 -08:00
Eric Traut
8d1634f103 Fixed crash due to hover provider accessing an unreachable node. 2019-11-28 09:53:38 -08:00
Eric Traut
f663152d0c Fixed type inference of "self" and "cls" parameters for methods in a Protocol class so they are not reported as unknown. 2019-11-27 11:43:43 -08:00
Eric Traut
c52ed3517a Fixed regression in type evaluator that broke completions in cases where there was a parse error (e.g. when typing a dot as part of a partially-completed member access expression). 2019-11-27 11:15:25 -08:00
Eric Traut
0524b45f17 Published 1.1.6 2019-11-26 22:54:48 -08:00
Eric Traut
9bbbac0a45 Increased high water mark for discarding type caches. 2019-11-26 22:30:47 -08:00
Eric Traut
661d0c06ca Fixed another case where actions of the hover provider generated incorrect errors. 2019-11-26 22:09:20 -08:00
Eric Traut
1e55f79e00 Fixed bug in type checker where hovering on some expressions before the file is fully checked could cause incorrect errors to be generated. Added bidirectional type inference support for yield statements. 2019-11-26 21:45:36 -08:00
Eric Traut
d209eba6ba Fixed spelling errors in some comments. 2019-11-26 17:29:54 -08:00
Eric Traut
bd0807e59f Disabled polling in a less-disruptive manner on non-Mac systems. 2019-11-26 13:26:58 -08:00
Eric Traut
bc00ff2ca3 Disable file system watcher polling on MacOS because it's causing too much instability. 2019-11-26 13:24:48 -08:00
Eric Traut
eefd5f3594 Added declarations to parameter nodes. 2019-11-26 09:12:31 -08:00
Eric Traut
ef09ce71c8 Improved error reporting for declaration collisions. 2019-11-26 09:12:30 -08:00
Eric Traut
5f424a1d57 Removed Method declaration type by adding an isMethod field onto the FunctionDeclaration interface. This simplifies the code in a bunch of places. 2019-11-26 09:12:30 -08:00
Eric Traut
52792e8c06 Added support for related information in diagnostics. 2019-11-26 09:12:30 -08:00
Eric Traut
868d34c33b
Merge pull request #367 from cshesse/patch-3
add missing newline in --help output
2019-11-26 09:10:25 -08:00