Commit Graph

7961 Commits

Author SHA1 Message Date
Eric Traut
421207151a Updated installation instructions to include a note about installing node. 2019-05-16 15:31:37 -07:00
yoji.higoshi
9dac23d199 Don't exit at code 1 if only warning 2019-05-17 01:23:12 +09:00
Eric Traut
183c0ef56d Improved error reporting for union type mismatches. 2019-05-15 23:08:25 -07:00
Eric Traut
7d5ff66df2 Added config options strictListInference and strictDictionaryInference. 2019-05-15 22:59:32 -07:00
Eric Traut
768cb3f2c2 Fixed bug in builtins test. 2019-05-14 09:44:30 -07:00
Eric Traut
0a91d7fdbe Fixed bug in type analyzer where it wasn't doing proper type var matching. 2019-05-14 09:44:17 -07:00
Eric Traut
0c1f39dda1 Added deactivate function in language client. 2019-05-12 18:42:12 -07:00
Eric Traut
f86709168d Fixed another issue related to Windows path processing. 2019-05-12 18:32:47 -07:00
Eric Traut
8b24d03388 Fixed #124: Switched to external URI parsing package to avoid platform-specific issues that affected Windows. 2019-05-12 17:54:03 -07:00
Eric Traut
45ad974036 Method rename for consistency. 2019-05-12 14:06:13 -07:00
Eric Traut
d8cc29b80d Published 1.0.27 2019-05-11 21:08:11 -07:00
Eric Traut
071299fcf6 Fixed bug #123 - was excluding breakpoint builtin symbol. 2019-05-11 21:04:36 -07:00
Eric Traut
a302440022 Fixed bug in scope combination logic used for try/except/else statements. 2019-05-11 21:04:08 -07:00
Eric Traut
e55bee2c09 Updated getting-started instructions. 2019-05-11 19:53:25 -07:00
Eric Traut
7fff54849a Fixed a few bugs/regressions found during testing. 2019-05-11 19:49:09 -07:00
Eric Traut
b92873b2dd Added "reportConstantRedfinition" config option. 2019-05-11 19:28:23 -07:00
Eric Traut
b007b88a1e Added declarations for entries in named tuples so the definition provider can find them. 2019-05-11 11:57:45 -07:00
Eric Traut
af43c91213 Added detection of and reporting of unaccessed local variables, parameters, imports, private methods, and private class variables. 2019-05-11 11:39:54 -07:00
Eric Traut
e279f3c52a Published 1.0.26 2019-05-10 23:16:07 -07:00
Eric Traut
01de6d61ed Added new config option "reportIncompatibleMethodOverrode". 2019-05-10 23:05:30 -07:00
Eric Traut
76687b83ff Fixed bugs in type combining logic. In particular, if a non-literal is combined with a literal, the non-literal should "take over" the literal. 2019-05-10 23:05:14 -07:00
Eric Traut
b34ccfcb9e Fixed bug where code flow was not propagating "break" statement to enclosing scopes. 2019-05-10 18:55:27 -07:00
Eric Traut
c9a05d831e Added special-casing support for TYPE_CHECKING variable. 2019-05-10 08:21:13 -07:00
Eric Traut
745613fe55 When filling in missing type arguments for a generic class, use the specialized version of the TypeVar rather than Any. 2019-05-09 23:14:13 -07:00
Eric Traut
2ef6083542 Fixed issue where strict type mode was indicating that local variables were "unknown" in certain loops. 2019-05-09 18:58:15 -07:00
Eric Traut
f885e7111b Fixed #120: import under conditional was reporting "unbound" variable. 2019-05-09 17:48:49 -07:00
Eric Traut
e71ccaa120 Revert "Add support for multi-root workspace"
This reverts commit f763d2c61e.
2019-05-09 14:50:30 -07:00
Eric Traut
32771db263 Revert "Small tweaks for coding convention consistency."
This reverts commit 2769c69374.
2019-05-09 14:48:56 -07:00
Eric Traut
d4012f4596 Revert "Fixed regression that broke the ability to analyze files outside of the current workspace."
This reverts commit 39d400f367.
2019-05-09 14:48:48 -07:00
Eric Traut
39d400f367 Fixed regression that broke the ability to analyze files outside of the current workspace. 2019-05-09 10:51:26 -07:00
Eric Traut
2769c69374 Small tweaks for coding convention consistency. 2019-05-09 09:28:43 -07:00
Eric Traut
f0a35a55cc
Merge pull request #115 from mhzed/multiroot
Add support for multi-root workspace
2019-05-09 09:23:09 -07:00
Eric Traut
96b28218ae Increased MaxAnalysisPass slightly so we can analyze the stdlib files without hitting the max pass count. 2019-05-09 09:21:58 -07:00
Eric Traut
8460a8bae8 Changed service to automatically use the root execution path as its implicit include if no other include file specs are provided. This allows the VS Code extension to work without a config file. 2019-05-09 08:54:13 -07:00
Eric Traut
e873d32c16 Removed period from output message for consistency. 2019-05-09 08:53:21 -07:00
Eric Traut
69dcfc5725 Added help for --verbose switch. 2019-05-09 08:50:47 -07:00
Eric Traut
2f148e88a7 Small tweaks to version printing code. 2019-05-09 08:21:22 -07:00
Eric Traut
c3ca99be3f
Merge pull request #118 from butuzov/feature/version
`--version` cli argument added to pyright
2019-05-09 08:16:38 -07:00
Oleg Butuzov
76d464aaad --version cli argument added to pyright 2019-05-09 16:41:54 +03:00
Eric Traut
43e87c9319 Published 1.0.25 2019-05-09 00:14:08 -07:00
Eric Traut
74bbc3f5fa Fixed declaration coalescing for union types. 2019-05-08 23:56:29 -07:00
Eric Traut
e12ec26eed Fixed a couple of bugs in import handling. Declaration wasn't properly added to import target when an alias was present, so definition provide didn't work. Also, imports of the form "from . import X" were not flagged as import resolution failures. 2019-05-08 21:24:07 -07:00
Eric Traut
48259c460d Specialized declared types for parameters. 2019-05-08 19:21:52 -07:00
Eric Traut
0892db86ed Improved hover provider so it provides type information even if no declaration can be found. 2019-05-08 14:53:54 -07:00
Eric Traut
d9d9b1a5db Added type declaration to function parameters if a type annotation is present. 2019-05-08 14:53:31 -07:00
Eric Traut
b2027cc635 Implemented proper type inference for dictionary literals that use list comprehensions. 2019-05-07 22:22:28 -07:00
Eric Traut
caeb4b57f7 Added support for multiple definitions in definition provider. 2019-05-07 18:56:56 -07:00
mhzed
f763d2c61e Add support for multi-root workspace 2019-05-07 18:23:11 +08:00
Eric Traut
738efc58a0 Fixed bug with specialized type aliases. 2019-05-06 20:29:54 -07:00
Eric Traut
8cd8e7ca20 Improved hover provider so it looks up type in declaration if it's not cached on the node. 2019-05-06 20:29:54 -07:00