Commit Graph

7548 Commits

Author SHA1 Message Date
Eric Traut
f6711cdcf4 Reduce the no-open-file time limit to improve responsiveness. 2019-03-28 20:56:14 -07:00
Eric Traut
1204e8c104 Fixed a few more issues in type constraints engine. 2019-03-28 20:52:56 -07:00
Eric Traut
30fb56baef Fixed handling of type annotations that involve generic classes with no specified type parameters (e.g. "list"). 2019-03-28 17:16:57 -07:00
Eric Traut
d06d89a6dd Fixed special-case type checking rules for int and float. 2019-03-28 16:52:18 -07:00
Eric Traut
c5ad70cb29 Added logic for conditional type assignments within except and else clauses of try/except/else/finally statement. 2019-03-28 10:51:30 -07:00
Eric Traut
365f966a9e Added assignment type constraint. 2019-03-28 00:39:18 -07:00
Eric Traut
fe3b7069cf Added documentation for building and debugging. 2019-03-27 23:18:11 -07:00
Eric Traut
76cf9dc476 Improved performance of VS Code analyzer by creating larger batches once all open files and their dependencies have been analyzed. 2019-03-27 23:18:11 -07:00
Eric Traut
e03f63a181 Eliminated redundant error reporting of undefined values. 2019-03-27 23:18:11 -07:00
Eric Traut
324a1e382a Fixed a regression in type constraint logic found during manual testing. 2019-03-27 23:18:11 -07:00
Eric Traut
dac4a33087 Fixed additional bugs in the "InstanceOf" type constraint logic. The interactions between subclasses and superclasses was more complex than I had originally appreciated. 2019-03-27 23:18:11 -07:00
Eric Traut
64deeded4a
Merge pull request #27 from pykong/patch-1
Enhancing FAQ readability
2019-03-27 07:59:55 -07:00
Ben Felder
76e333db31
Enhancing FAQ readability 2019-03-27 14:55:38 +01:00
Eric Traut
3e87a2993b Published 1.0.4 2019-03-26 23:58:26 -07:00
Eric Traut
ce804a1d39 Fixed recent regression that caused unit tests to crash. 2019-03-26 23:54:06 -07:00
Eric Traut
01204a1db2 Fixed debugging of command-line tool. 2019-03-26 23:53:50 -07:00
Eric Traut
64708ce30b Added code to find built-in aliases in the collections typeshed file. 2019-03-26 23:30:00 -07:00
Eric Traut
096b0c7399 Changed code to emit error if configuration specifies a python version of 2.x, since Pyright doesn't currently support that. 2019-03-26 22:38:14 -07:00
Eric Traut
19f1250405
Merge pull request #25 from tamuhey/docs_configuration_venv
Add sample of vev configuration in docs.configuration
2019-03-26 22:22:39 -07:00
Yohei Tamura
8715d7424a add venv sample config 2019-03-27 04:19:27 +00:00
Eric Traut
cc231dc238 Temporarily disable return type checks for generator functions. 2019-03-26 20:42:41 -07:00
Eric Traut
5c82476945 Improved logic for detecting typeshed directory. 2019-03-26 20:05:47 -07:00
Eric Traut
756ca87e8f Fixed bug in isinstance type constraint. It was using the wrong direction for testing for subclasses. 2019-03-26 20:04:42 -07:00
Eric Traut
cc261abf7c Renamed reportMissingStubFiles to reportMissingTypeStubs. 2019-03-26 19:49:50 -07:00
Eric Traut
0ba5a1a8cb Added support for a few configuration settings in VS Code that are common to the standard VS Code Python extension.
Added new setting "reprtMissingStubFiles".
2019-03-26 19:47:02 -07:00
Eric Traut
7b148b9fe2 Updated README. 2019-03-25 01:54:16 -07:00
Eric Traut
9df1398320 Fixed regression in launch script. 2019-03-25 01:53:56 -07:00
Eric Traut
a4d42ba0e9 Implemented code to validate subtyping for classes and objects with type arguments. This includes enforcement of covariance and contravariance. 2019-03-25 01:53:37 -07:00
Eric Traut
816c4131e3 Added new build:clientServer script to speed up inner loop of debugging. 2019-03-24 18:05:31 -07:00
Eric Traut
7e859f73d9 Fixed a couple of bugs in the docs. 2019-03-24 14:24:42 -07:00
Eric Traut
026a1f48c0 Added more documentation around the -v command-line switch. 2019-03-24 10:52:32 -07:00
Eric Traut
f5362e9e09 Added installation instructions for command-line tool. 2019-03-24 03:34:53 -07:00
Eric Traut
e7e9e0a8eb Added logic in command-line parser to print usage if no files or projects are specified.
Added "bin" section to project.json.
Bumped version to 1.0.3.
2019-03-24 03:31:37 -07:00
Eric Traut
c9b18356a4 Removed postinstall script so npm installation is possible. 2019-03-24 03:06:45 -07:00
Eric Traut
0563813b9e Updated build scripts to build command-line version into an npm module. 2019-03-24 02:58:01 -07:00
Eric Traut
5e83a19a04 Added "source" string to diagnostics output so errors and warnings are displayed with "pyright" in VS Code. 2019-03-24 02:38:38 -07:00
Eric Traut
396b6888fb Fixed crashing bug that could occur if typeshed files were not found. 2019-03-24 01:10:19 -07:00
Eric Traut
8afce050bd Fixed unit tests. 2019-03-24 00:01:35 -07:00
Eric Traut
a2c1fdef39 Fixed bug that caused a crash when last file in program was removed from the source file list. 2019-03-23 23:48:11 -07:00
Eric Traut
08baed6f06
Merge pull request #5 from kinow/log-consistency-1
Be consistent on log messages, using file location instead of URI as in other methods
2019-03-23 23:03:39 -07:00
Bruno P. Kinoshita
df84fe04e3 Be consistent on log messages, using file location instead of URI as in other methods 2019-03-24 18:52:43 +13:00
Eric Traut
ecffdd4bb4 Published 1.0.1. 2019-03-23 21:55:32 -07:00
Eric Traut
d5560b6e98
Merge pull request #2 from kinow/typo-in-method
Fix typos in methods
2019-03-23 21:22:23 -07:00
Bruno P. Kinoshita
18d06b5b45 Fix typos in methods 2019-03-24 17:20:00 +13:00
Eric Traut
7c243b655a Small update to README. 2019-03-23 21:16:09 -07:00
Eric Traut
cc9ddcd458 Fixed handling of Type generic type.
Fixed bug in binding of __new__, which needs to act like a class method.
Made all functions with unknown (custom) decorates have a type of unknown.
2019-03-23 21:16:09 -07:00
Eric Traut
4f4a578928 Fixed bug in typeshed unittest type stub file. It didn't provide an overload for assertAlmostEqual that supports datetime parameters. 2019-03-23 21:16:09 -07:00
Eric Traut
2a66f9c7e5
Merge pull request #1 from kinow/typos
Fix typos
2019-03-23 21:15:24 -07:00
Bruno P. Kinoshita
a862c98c6f Fix typos 2019-03-24 17:06:26 +13:00
Eric Traut
4be74b54d2 Fixed bug in config processing that affected configurations with no explicit execution environments. 2019-03-23 13:25:37 -07:00