Eric Traut
3d6d99e1cd
Updated copyright notices in all source files.
2019-03-17 22:14:08 -07:00
Eric Traut
22e0fb133a
Updated LICENSE and CONTRIBUTING files.
2019-03-17 22:05:33 -07:00
Eric Traut
45d3682eeb
Fixed validation of __init__ and __new__.
2019-03-17 22:05:16 -07:00
Eric Traut
21eb57f64e
Added code to propagate if/else type conditions beyond the if/else statement if it always returns or raises.
2019-03-17 20:26:23 -07:00
Eric Traut
6a6920d1a7
Moved conditional expression evaluation into expression evaluator.
2019-03-17 19:38:35 -07:00
Eric Traut
6b89c747d7
Fixed bug in handling of conditional expressions.
2019-03-17 19:22:19 -07:00
Eric Traut
569c50b23d
Added type conditional support for "X is None" and "X is not None" patterns.
2019-03-17 18:40:07 -07:00
Eric Traut
55b7f62435
Added code to "self specialize" the type for "self" and "cls" parameters.
...
Started to add support for generators.
2019-03-17 17:27:39 -07:00
Eric Traut
6f3d736c75
Fixed a few bugs in public typeshed files.
2019-03-17 17:26:35 -07:00
Eric Traut
aefac4b9e5
Restructure and rename for clarity.
2019-03-17 09:57:19 -07:00
Eric Traut
84c187a47b
Added minimal handling of ClassVar.
...
Fixed bug in type analyzer related to property analysis.
2019-03-17 09:32:29 -07:00
Eric Traut
c042723aa6
Updated README.
2019-03-17 09:31:42 -07:00
Eric Traut
017c21dcb1
None derives from object.
2019-03-17 00:12:36 -07:00
Eric Traut
42a19a82c5
Moved more logic from type analyzer to expression evaluator.
...
Added specialization support for function types.
2019-03-17 00:06:21 -07:00
Eric Traut
18ab06dbe3
Changed ClassType.cloneForSpecialization to take a list of type arguments as a parameter.
...
Moved __getattribute__ processing into expression evaluator.
Implemented more specialization logic.
Removed hacky node reference in FunctionParameter interface.
2019-03-16 16:14:47 -07:00
Eric Traut
6a246da971
Fixed bug in parsing of from import clauses where it didn't detect empty import statements.
2019-03-16 12:15:20 -07:00
Eric Traut
64ef65546b
Fixed more bugs in expression evaluator.
2019-03-16 12:14:27 -07:00
Eric Traut
5c0c0ce016
Fixed several more bugs in expression evaluator.
2019-03-16 09:44:47 -07:00
Eric Traut
b518f36694
Removed redundant expression evaluation code from type analyzer.
2019-03-16 09:12:01 -07:00
Eric Traut
cee369f31b
Temporarily commented out buggy code in list comprehension code.
2019-03-16 01:58:39 -07:00
Eric Traut
05aea176ef
Added caching and a bunch of additional cases to expression evaluator.
2019-03-16 01:48:15 -07:00
Eric Traut
f933d3fa5c
Removed typeAnnotation module and moved most of its logic into new expressionEvaluator module.
...
Created scopeUtils module.
2019-03-15 23:42:50 -07:00
Eric Traut
6da6593d4d
Fixed a few more bugs in type checker.
2019-03-15 19:28:09 -07:00
Eric Traut
00ae7f1400
Fixed a few bugs in type analyzer.
2019-03-15 17:29:48 -07:00
Eric Traut
cbaaa0ff84
Fixed bug related to namedtuple.
2019-03-15 01:04:51 -07:00
Eric Traut
3ff54aab35
Continued work on generics.
2019-03-14 23:40:08 -07:00
Eric Traut
0ce70b3b98
Fixed bug in analysis loop that could result in dependent files not getting invalidated due to a timeout.
2019-03-14 23:39:29 -07:00
Eric Traut
b7793cbe29
Improved hover output for classes.
2019-03-14 23:38:31 -07:00
Eric Traut
6d7a44fcdf
Fixed type stub file.
2019-03-14 23:38:11 -07:00
Eric Traut
9f3b20bfc1
Fixed a few bugs in generics processing.
2019-03-14 17:33:46 -07:00
Eric Traut
4f270b62d7
Fixed regression in constructor argument validation.
2019-03-14 16:44:14 -07:00
Eric Traut
f0bf4a1f74
Continued implementation of generic classes.
2019-03-14 16:38:52 -07:00
Eric Traut
5e47a2fd18
Added the ability to clone ClassType instances for specialization purposes.
...
Hooked up built-in types to their corresponding base classes (e.g. List derives from list).
2019-03-14 13:40:31 -07:00
Eric Traut
f3cf0c0a9b
Started to revamp typeAnnotation to handle type variables.
2019-03-13 23:52:16 -07:00
Eric Traut
68d64bc3d7
Refactored type annotation code into smaller functions.
2019-03-12 22:24:35 -07:00
Eric Traut
8cb737469e
Modified FunctionType and ClassType to support type parameters and type arguments.
2019-03-12 15:35:32 -07:00
Eric Traut
24b705a661
Small tweaks to README
2019-03-12 15:22:15 -07:00
Eric Traut
61bd3d4fac
Updated logo
2019-03-12 15:19:01 -07:00
Eric Traut
6fc1c00af6
Eliminated unnecessary EllipsisType.
2019-03-11 22:02:44 -07:00
Eric Traut
67089438cc
Small update to README.
2019-03-11 22:02:23 -07:00
Eric Traut
a4fb40d565
Added .vscode/launch.json file.
2019-03-11 22:02:14 -07:00
Eric Traut
cf93cdf7b2
Update readme.
2019-03-11 21:33:50 -07:00
Eric Traut
6d6f2b6f4f
Updated documentation.
2019-03-11 21:30:44 -07:00
Eric Traut
66a03a9525
Added logo
2019-03-11 20:49:50 -07:00
Eric Traut
1d91744b1f
Initial checkin.
2019-03-11 20:45:56 -07:00
Microsoft Open Source
da82496b3c
Initial commit
2019-03-11 20:38:50 -07:00
Microsoft Open Source
134f8ad48b
Initial commit
2019-03-11 20:38:50 -07:00
Microsoft GitHub User
60c76da87d
Initial commit
2019-03-11 20:38:47 -07:00