Граф коммитов

8055 Коммитов

Автор SHA1 Сообщение Дата
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
Eric Traut bf46a52c97 Fixed handling of __new__ magic method. Its parameter signature changes based on whether it's called as a constructor or by name directly. 2019-03-30 00:11:55 -07:00
Eric Traut 24b7af34f1
Merge pull request #40 from deepcommit/master
fix pep8 E231 issue
2019-03-29 23:35:04 -07:00
Eric Traut 3d1393faf3 Added more type constraint logic to invalidate type constraints after an assignment. 2019-03-29 23:11:15 -07:00
deepcommit a8e015c2c7 Fixed PYTHON_E231 issues in /home/andrew/Projects/codehelper/data/repos/deepcommit/pyright/server/src/tests/samples/sample1.py 2019-03-29 23:01:22 -07:00
deepcommit 89c456c9fe Fixed PYTHON_W391 issues in /home/andrew/Projects/codehelper/data/repos/deepcommit/pyright/server/src/tests/samples/sample1.py 2019-03-29 23:01:14 -07:00
Eric Traut cb798aae54 Tweaked wording of progress update. 2019-03-29 19:36:34 -07:00
Eric Traut 62fcd1fe33 Added analysis status progress reporting to VS Code status bar. 2019-03-29 19:33:01 -07:00
Eric Traut ffd3244753 Fixed bug in expression evaluator where it was creating specialized types of non-generic classes, resulting in a bunch of false positive errors. 2019-03-29 16:26:14 -07:00
Eric Traut 6e71cf72a9 Fixed regression where unknown symbols in type annotations were not being reported. 2019-03-29 16:26:10 -07:00
Eric Traut 2756e666de Made another README edit based on input. 2019-03-29 13:10:11 -07:00
Eric Traut 4b95ec44d4
Merge pull request #36 from jugmac00/patch-1
Fix typo.
2019-03-29 12:59:52 -07:00