Commit Graph

1316 Commits

Author SHA1 Message Date
Eric Traut
5bff6654fa Added comments to program.ts. 2019-04-02 00:04:45 -07:00
Eric Traut
b938498bb8 Moved code structure section from main README to internals documentation. 2019-04-01 19:46:51 -07:00
Eric Traut
1808221aba Published 1.0.8 2019-04-01 19:27:53 -07:00
Eric Traut
9d66bc4538 Updated README TODO list. 2019-04-01 19:26:06 -07:00
Eric Traut
60b836ff5b Added detection for non-quoted forward references of types within regular source files (as opposed to stub files, which support forward references). 2019-04-01 18:25:14 -07:00
Eric Traut
329ad74b2f Added missing support for matrix multiply operator. 2019-04-01 17:48:27 -07:00
Eric Traut
38feba9610 Fixed specialization of special types like Dict. We need to synthesize type arguments if they are not provided. 2019-04-01 17:32:26 -07:00
Eric Traut
b81685048c Removed duplicate reporting of undefined variables. 2019-04-01 17:31:55 -07:00
Eric Traut
b25f52c0bc Fixed a regression introduced in previous check-in. Also improved a few error messages. 2019-04-01 15:37:14 -07:00
Eric Traut
fb1fe3e796 Added DiagnosticAddendum to provide additional information in some diagnostic output. 2019-04-01 15:17:39 -07:00
Eric Traut
407da5ac61 Added test cases for lambdas and function type matching. Fixed several bugs they found. 2019-04-01 10:30:26 -07:00
Eric Traut
6041705943 Added type checking and hover support for lambdas. 2019-04-01 01:26:10 -07:00
Eric Traut
68bd62d243 Renamed ConditionalExpressionNode to TernaryExpressionNode and cleaned ternary expression handling. 2019-03-31 23:01:02 -07:00
Eric Traut
163d90788c Added test case for Optional settings. 2019-03-31 22:31:12 -07:00
Eric Traut
d27f5196f2 Fixed spelling of AugmentedAssignmentExpressionNode. 2019-03-31 22:30:15 -07:00
Eric Traut
b989db24df Removed noisy server output. 2019-03-31 22:28:57 -07:00
Eric Traut
d29e64aecf Added switches for reportOptionalSubscript, reportOptionalMemberAccess and reportOptionalCall. 2019-03-31 21:58:35 -07:00
Eric Traut
216b18cef0 Published 1.0.7. 2019-03-31 18:32:20 -07:00
Eric Traut
5da743b0e0
Merge pull request #42 from freezestudio/patch-1
Update internals.md
2019-03-31 18:29:48 -07:00
Eric Traut
de035a2f1b Added type checking for unary operations (not, -, +, ~). 2019-03-31 18:28:47 -07:00
freezestudio
3566b6b805
Update internals.md
The function is not written completely
2019-04-01 09:12:45 +08:00
Eric Traut
705cc767de Implemented type checking for binary arithmetic operators, comparison operators and logical operators. Added test cases. 2019-03-31 17:36:20 -07:00
Eric Traut
5cde770e9d Changed type analyzer to not flag errors for imported symbols that resolve to modules without type stub files. These imports are treated as "unknown" types with no declaration. 2019-03-31 12:28:24 -07:00
Eric Traut
04217bda4c Added documentation about import resolution. 2019-03-31 12:28:24 -07:00
Eric Traut
bb4b846842 Removed support for pythonPath config file entry and VS Code setting. Added support for PYTHONPATH environment variable. The pythonPath setting were too confusing to users because VS Code’s pythonPath doesn't refer to the PYTHONPATH search paths; instead, it points to a python interpreter. 2019-03-31 12:28:23 -07:00
Eric Traut
bb3039180f Changed name of client from "Python" to "Pyright" so the output panel reports the correct name. 2019-03-31 12:28:23 -07:00
Eric Traut
f9988a4e49
Update issue templates
Updated bug template to include a request for a version.
2019-03-31 08:01:46 -07:00
Eric Traut
d8b3ad55a9 Added "NeverType" as a subclass of NoneType to use in cases where the type constraints eliminate all types. 2019-03-31 01:53:49 -07:00
Eric Traut
972c643471 Published 1.0.6 2019-03-30 19:54:11 -07:00
Eric Traut
14aadd9247 Added sanity checks and console output to help users diagnose problems with import resolution. 2019-03-30 19:42:32 -07:00
Eric Traut
a87e825e53 Sped up inner loop of development by eliminating tslint. 2019-03-30 19:42:10 -07:00
Eric Traut
2bbb496064 Added example of ignore setting in docs. 2019-03-30 19:41:58 -07:00
Eric Traut
fc5aba7488 Updated TODO list in README. 2019-03-30 16:37:15 -07:00
Eric Traut
1e47cbe1a7 Added support for "ignore" array in config. 2019-03-30 16:37:03 -07:00
Eric Traut
15b02f816b Improved responsiveness for open files. 2019-03-30 16:27:06 -07:00
Eric Traut
88bdc5a08b Fixed a few bugs in type var validation found during testing. 2019-03-30 15:01:00 -07:00
Eric Traut
67e4c60af4 Added enforcement of type var constraints when specializing a generic type. 2019-03-30 14:42:35 -07:00
Eric Traut
4261a2e84c Added more test cases. 2019-03-30 14:25:45 -07:00
Eric Traut
e32b08544b Added test case for circular dependencies. 2019-03-30 14:09:08 -07:00
Eric Traut
8f11dc3f4d Added test case for binary type constraint filtering. 2019-03-30 14:02:32 -07:00
Eric Traut
b2c519836a Added missing try/catch handler that caused a crash if the input file or directory was not present. 2019-03-30 13:47:19 -07:00
Eric Traut
7149696c2a Started to add test framework for type analyzer. 2019-03-30 13:31:41 -07:00
Eric Traut
3ebdb0b9b0 Added JSON schema for config file so intellisense works. 2019-03-30 13:31:41 -07:00
Eric Traut
21e4b1c028
Update issue templates
Customized templates
2019-03-30 09:51:52 -07:00
Eric Traut
55329d29d7
Update issue templates 2019-03-30 09:47:45 -07:00
Eric Traut
0e565eb0f2 Made analyzer more resilient in the face of internal errors. It previously entered into an infinite loop. Now it logs an error and moves on to the next file. 2019-03-30 02:29:31 -07:00
Eric Traut
b19f5b612a Fixed bug that caused the analyzer to crash if a class derived from itself. This condition is now detected and reported as an error. 2019-03-30 01:57:57 -07:00
Eric Traut
75692eb511 Fixed missing logic that specializes generic types with no specified type parameters. 2019-03-30 01:57:27 -07:00
Eric Traut
ddbdec5c6b Added logic to ignore return type agreement for abstract methods that declare a return type. 2019-03-30 00:59:00 -07:00
Eric Traut
e0994fdb47 Fixed bug in function parameter type matching. 2019-03-30 00:27:06 -07:00