Commit Graph
224 Commits
Author SHA1 Message Date
Ilya.Kazakevich 45cb54cacf PY-12565 Django: default template names for generic class-based views are not resolved 2014-04-08 22:06:57 +04:00
Alexey Kudravtsev e75d93b7ec notnull, cleanup 2014-04-02 13:28:01 +04:00
Ilya.Kazakevich 76e04ecd2c PY-12579 "url" function is not processed correctly when imported as alias 2014-03-31 18:35:27 +04:00
Ilya.Kazakevich 2b867ce58d PY-12344 Views in i18n_patterns are not resolved 2014-03-28 23:41:20 +04:00
Ilya.Kazakevich 5ab2bd89ef PY-12497 .NET stubs are generated incorrectly when name is imported instead of module 2014-03-27 02:11:17 +04:00
Andrey Vlasovskikh 4afd85f67a Merge branch 'python-fixes'
Conflicts:
	python/src/com/jetbrains/python/inspections/quickfix/AddFunctionQuickFix.java
2014-03-12 13:46:21 +04:00
Ekaterina Tuzova 2ba4ece037 Merge remote-tracking branch 'origin/master'
Conflicts:
	python/src/com/jetbrains/python/inspections/PyProtectedMemberInspection.java
	python/src/com/jetbrains/python/inspections/PyStatementEffectInspection.java
2014-03-11 15:29:15 +04:00
Andrey Vlasovskikh e36425ec85 Moved LanguageLevel.forFile() to PyUtil.getLanguageLevelForVirtualFile() 2014-03-07 18:44:42 +04:00
Ekaterina Tuzova 7438ce848b added create property quick fix for the property access inspection 2014-03-07 18:31:00 +04:00
Andrey Vlasovskikh 7325dffa0b Changed default language level to Python 2.7 2014-03-06 18:36:39 +04:00
Andrey Vlasovskikh a3141a4d58 Merge branch 'python-fixes' 2014-03-04 20:42:29 +04:00
Ilya.Kazakevich dd2e76a0ff PY-12178 Support pull up / push down for properties 2014-03-04 17:14:00 +04:00
Andrey Vlasovskikh 6b8002e34a Cache return types of callables using TypeEvalContext.getReturnType() 2014-03-04 14:17:46 +04:00
Andrey Vlasovskikh 287c82f797 Removed TypeEvalContext parameter from PyType.isBuiltin() 2014-03-03 17:06:52 +04:00
Ilya.Kazakevich 7805c3d589 Merge remote-tracking branch 'origin/master' 2014-03-03 15:44:17 +04:00
Andrey Vlasovskikh e77d5bb8b7 Switched to @NotNull call site in Callable.getCallType() and PyCallableType.getCallType()
Changed some usages of getCallType() to getReturnType() and fixed
handling of functions with custom decorators.
2014-03-03 15:39:47 +04:00
Andrey Vlasovskikh dd898e2d02 Introduced Callable.getCallType() instead of PyFunctionImpl.getReturnTypeWithoutCallSite() 2014-03-03 14:56:50 +04:00
Andrey Vlasovskikh 9e9e8e5a6a Cache call site independent return types of callables in TypeEvalContext 2014-03-03 14:22:00 +04:00
Andrey Vlasovskikh f90ee78702 Added Callable.getReturnType() and PyTypeProvider.getReturnType()
As a side effect, switched to type-based class generics unification in
constructors.
2014-03-03 13:39:21 +04:00
Andrey Vlasovskikh 54786f47c1 Renamed PyTypeProvider.getReturnType() to getCallType() 2014-03-03 12:56:37 +04:00
Andrey Vlasovskikh ed026c0705 Renamed Callable.getReturnType() to getCallType() 2014-03-03 12:45:46 +04:00
Andrey Vlasovskikh 1f721bbb79 Added PyCallableType.getReturnType() for forthcoming return types caching 2014-03-03 12:34:02 +04:00
Andrey Vlasovskikh a91ad4a303 Don't require PsiFile.getText() for detecting Python charset declaration 2014-02-28 14:47:38 +04:00
Ilya.Kazakevich 3717b9aaea PY-12178 Support pull up / push down for properties (not ready yet: only properties excluded from other managers) 2014-02-26 21:05:39 +04:00
Vassiliy 29068e1379 png optimization 2014-02-25 18:13:34 +04:00
Andrey Vlasovskikh 8af73b7185 Don't resolve to file-level '__metaclass__' in PyClass.getMetaClassExpression() (PY-12127)
This method is invoked during indexing and it shouldn't resolve
references extensively. Related to this issue, the return type of
PyClass.getMetaClassType() has been changed in order to be able to
return weak metaclass types.
2014-02-20 14:04:56 +04:00
Ilya.Kazakevich b32156d3c5 PY-2858 Pull Up Abstract Method (finally!) 2014-02-14 22:03:37 +04:00
Ilya.Kazakevich 40f6fbe45c PyArgumentList#addArgument fixed and test added 2014-02-14 20:34:05 +04:00
Ilya.Kazakevich 24c879c5f5 Code cleanup for "membersManager" package to make it type-safe
PullUp: Refactored to use Processor on MembersManager

StatementList refactoring

PullUp: processor added

PyExtractSuperClass and PyPullMembersUp refactored and covered with tests.

PyExtractSuperClass and PyPullMembersUp refactored and covered with tests.
2014-02-06 18:31:49 +04:00
Ilya.Kazakevich 955663ad6c PY-3450 Refactoring: pull up class variables/attributes (almost done: need to check dependencies, resolve conflicts and use same functionality for "extract superclass" and "pushdown") 2014-02-04 00:47:26 +04:00
Dmitry Trofimov 2e82518e58 EA-49160 2014-01-30 13:02:12 +01:00
Ekaterina Tuzova 50c4cf30ee Merge remote-tracking branch 'origin/master' 2014-01-24 13:06:18 +04:00
Ekaterina Tuzova 43e98b8e2a fixed isAbstractmethod 2014-01-24 12:15:27 +04:00
Andrey Vlasovskikh 50d1e9b3cc Cleanup of API for qualified names of expressions
Added PyQualifiedExpression.asQualifiedName() and moved utility
functions to PyPsiUtils. Expression classes can now cache the results
of calculating their qualified names.
2014-01-23 22:00:58 +04:00
Andrey Vlasovskikh 585e827014 Added PyQualifiedReference.isQualified() that potentially doesn't require AST access 2014-01-23 18:04:13 +04:00
Ilya.Kazakevich b55ee30dc1 PY-11882 Assignment to for loop inspection false positive
PY-3569 Inspection to warn if a loop variable is assigned inside the loop
2014-01-23 03:38:23 +04:00
Andrey Vlasovskikh ed3781b0e9 Merge branch 'python3.4' 2014-01-21 18:14:56 +04:00
Andrey Vlasovskikh d2a8310ee8 Removed redundant PyTypeProvider.getIterationType()
It was used only for 'file', superseded by 'io' classes. Providers can
provide iteration types via '__iter__' and '__next__'.
2014-01-21 16:18:10 +04:00
Andrey Vlasovskikh 89beff839b Fixed PyABCUtil.isSubtype() check for class definitions that have metaclasses 2014-01-21 02:03:34 +04:00
Andrey Vlasovskikh 6238d926c2 Store metaclass qualified name in class stub for better performance 2014-01-21 00:51:59 +04:00
Andrey Vlasovskikh cb9e823882 Added PyClass.getMetaClassExpression() 2014-01-21 00:33:01 +04:00
Andrey Vlasovskikh bf9a384d08 Refactored PyUtil.getMetaClass() into PyClass.getMetaClassType()
This will allow to deal with metaclasses that are not necessary based
on PSI elements. Also it will help creating stubs for Python 3
metaclasses defined as keyword arguments.
2014-01-20 23:07:05 +04:00
Dmitry Trofimov 609c0db87b Keywords already contains 'as' and 'with' 2014-01-20 17:27:17 +01:00
Dmitry Trofimov 4d1ca37c01 Merge PyKeywords with PyNames 2014-01-20 17:26:17 +01:00
Andrey Vlasovskikh 8e8019c396 Nullity annotations 2014-01-17 16:42:55 +04:00
Andrey Vlasovskikh b8a5d1e191 Added 'inherited' parameter to PyClass.findProperty() 2014-01-16 17:52:39 +04:00
Andrey Vlasovskikh 38bf2a6862 Python skeletons class members provider now can provide new overridden members
It is useful for overloading method signatures in subclasses.
2014-01-16 17:06:46 +04:00
Ekaterina Tuzova de36aec875 updated test data for python3.4 2013-12-26 19:23:29 +04:00
Ekaterina Tuzova 892dab2528 updated code compatibility inspection 2013-12-24 19:24:40 +04:00
Andrey Vlasovskikh bc9e47fbbe Removed unused PyStringLiteralExpression.iterateCharacterRanges() 2013-12-05 19:16:22 +04:00