Daniil Ovchinnikov
6f9668561c
@NotNull/@Nullable in RenamePsiElementProcessor implementations
2018-01-23 20:37:52 +03:00
Alexey Kudravtsev
fdd8c7acc5
cleanup
2018-01-23 18:57:45 +03:00
Alexey Kudravtsev
5500cca5b4
cleanup
2018-01-23 15:35:09 +03:00
Semyon Proshev
bcf616d32e
Minor fixes in inspection messages (PY-27398)
2018-01-22 22:52:09 +03:00
Semyon Proshev
f8a6644f03
Consider fields defined via field function while inspecting their order (PY-27398)
2018-01-22 22:52:09 +03:00
Semyon Proshev
315b33c41f
Highlight the case when default and default_factory are specified (PY-27398)
2018-01-22 22:52:09 +03:00
Semyon Proshev
bdce6311ca
Support dataclasses fields defined via field function (PY-27398)
...
Update PyDataclassesTypeProvider to ignore such fields or correctly specify default value for them.
Create custom target stubs for such fields to store parameters.
2018-01-22 22:52:08 +03:00
Semyon Proshev
1d2745ec25
Reduce unstubbing in PyDataclassesTypeProvider and PyStdlibTypeProvider (PY-27398)
...
By introducing `hasAssignedValue` for target and its stub.
2018-01-22 22:52:08 +03:00
Semyon Proshev
3c888b95f3
Reduce unstubbing in PyDataclassesTypeProvider (PY-27398)
2018-01-22 22:52:07 +03:00
Semyon Proshev
29f25b8beb
Cleanup PyDataclassInspection.visitPyClass (PY-27398)
2018-01-22 22:52:07 +03:00
Semyon Proshev
0ea2055c4c
Highlight wrong __post_init__ signature (PY-27398)
2018-01-22 22:52:06 +03:00
Semyon Proshev
fea746d2a1
Highlight __post_init__ when init parameter is False (PY-27398)
2018-01-22 22:52:06 +03:00
Semyon Proshev
47b5e556b8
Highlight init-only fields when __post_init__ is not declared (PY-27398)
2018-01-22 22:52:05 +03:00
Semyon Proshev
ce63287531
Inspect access to dataclasses' init only fields (PY-27398)
2018-01-22 22:52:04 +03:00
Semyon Proshev
c17a9024d9
Highlighting tests for module builtin methods (PY-28017)
2018-01-22 21:43:36 +03:00
Semyon Proshev
51eaba1aa2
Highlight module builtin methods as not allowed to be async (PY-28017)
2018-01-22 21:43:36 +03:00
Semyon Proshev
36f657d77b
Don't highlight unused parameter in module __getattr__ (PY-28017)
2018-01-22 21:43:36 +03:00
Semyon Proshev
5137658450
Completion for __getattr__ and __dir__ in module (PY-28017)
2018-01-22 21:43:35 +03:00
Semyon Proshev
fb0c5cc58b
Support module with __getattr__ while resolving and type checking (PY-28017)
2018-01-22 21:43:35 +03:00
Semyon Proshev
cff0305fb8
Don't forget type declarations while collecting class attributes (PY-26163)
2018-01-22 21:41:16 +03:00
Sergey Ignatov
211d853c07
cleanup python-helpers
2018-01-22 17:17:29 +03:00
Konstantin Bulenkov
92a2a4c595
cleanup. Get rid of colors from UI class
2018-01-22 14:54:26 +01:00
Vladimir Krivosheev
74fdc3f9af
add loadState(notnull)
2018-01-22 14:35:56 +01:00
peter
315b7969c1
migrate most usages of deprecated com.intellij.util.containers.HashMap/Set to java.util
2018-01-19 22:26:30 +01:00
Dmitry Trofimov
6858c0e803
Clean-up module dependencies
2018-01-19 19:40:19 +01:00
Semyon Proshev
54251cca16
Refix calculating receiver of inner class initialization (PY-23259, PY-26992)
...
Wrong receiver is returned in case of class initialization qualified with module.
2018-01-19 18:34:31 +03:00
Semyon Proshev
49d3aade75
Enable pyi-stubs for collections module (PY-23259, PY-21415, PY-17865, PY-17206)
...
Infer `tuple` class type when `collections.namedtuple` could not be analyzed.
Infer `namedtuple` class type when `typing.NamedTuple` could not be analyzed.
Create callable type for `typing.Callable`.
Update ignoring `__getitem__` for ancestors, docstrings and annotations.
Infer superclass collection type correctly.
2018-01-19 18:34:31 +03:00
Vladimir Krivosheev
98265397ff
introduce XMap annotation
2018-01-19 15:23:16 +01:00
Semyon Proshev
6f96e13a3e
Set 2.7, 3.4, 3.5 and 3.6 as possible python versions for conda (PY-28050)
2018-01-18 17:46:32 +03:00
Vladimir Koshelev
35b77e8d95
replace DFAEngine implementation: use topological order
...
- add createGraph(flow) to ControlFlowUtil;
- use DFSTBuilder to get SCCs for a control flow;
- dfa iterates all components once;
- dfa iterates strongly-connected component before convergence;
- deprecated method DfaInstance#isForward() is removed;
- remove unused DFAEngine#performDfa(info);
- remove unused ControlFlowUtil#postOrder.
New dfa analysis does not have a convergence issue in merge points.
(IDEA-CR-28352)
2018-01-18 17:30:10 +03:00
Alexey Kudravtsev
d81f59d434
removed redundant method overriders after "Method is identical to its supermethod" inspection run
2018-01-18 16:28:43 +03:00
Semyon Proshev
c86688b5e6
Revert "Remove deprecated methods and classes from PyCallExpression"
...
This reverts commit 80701b3 until https://github.com/pantsbuild/intellij-pants-plugin/issues/327 is closed
2018-01-18 15:27:58 +03:00
Tagir Valeev
db9200fcdb
Collection.toArray: use empty array instead of presized one
2018-01-18 13:41:14 +07:00
Semyon Proshev
12341747ff
Info on positional parameters when they are not expected (EA-102450)
2018-01-17 22:06:36 +03:00
Semyon Proshev
eaaaf8bd7a
Cleanup PyNamedTupleType
2018-01-17 22:06:36 +03:00
Semyon Proshev
bafc005066
Full type support for namedtuple._replace (PY-27148)
...
Provide correct parameters for typed and untyped NT.
Clarify return type for untyped case.
2018-01-17 22:06:35 +03:00
Semyon Proshev
a81ded8e78
Override namedtuple._make and namedtuple._replace return type (PY-27148)
2018-01-17 22:06:35 +03:00
Semyon Proshev
fcefe43db9
Improve ignoring access to namedtuple's protected members (PY-27148)
2018-01-17 22:06:35 +03:00
Mikhail Golubev
4b7f2a9af3
PY-28016 Investigating why the respective test blinks on TC
...
Added additional info in assertions and also replaced the original cache
data in JSON with a stub containing only Flask required for the test
(otherwise, its initialization seems to slow execution down dramatically).
2018-01-17 20:13:41 +03:00
Vladimir Krivosheev
59e713b361
eliminate addConfiguration(..., false) — false is default value
2018-01-17 17:15:26 +01:00
Liana.Bakradze
a561814784
remove non-existing source folders from imls
2018-01-17 12:31:37 +03:00
Liana.Bakradze
5b80e7dc10
download EduTools plugin: get plugin version from properties
2018-01-17 11:03:44 +03:00
Liana.Bakradze
21814af0cf
download EduTools plugin from plugins repo
...
Plugin was stored as zip archive in resources which consumed too much
space in git repo. See EDU-1146 for reference about the original change
2018-01-17 11:03:44 +03:00
Vladimir Krivosheev
4d0972dc50
JavadocConfiguration — do not write defaults
2018-01-16 16:17:32 +01:00
Semyon Proshev
787e678baa
Use isReferenceTo(keywordContainer) instead of name matching (PY-26285)
2018-01-16 18:13:59 +03:00
Semyon Proshev
2650bf2d41
Support pop on keyword container (PY-26284)
2018-01-16 18:13:58 +03:00
Semyon Proshev
794d3ac932
Support passing default argument with keyword (PY-27105)
2018-01-16 18:13:58 +03:00
Dmitry Batrak
bdb86162aa
keep ParameterInfoHandler instances stateless
...
move state from MethodParameterInfoHandler to controller (ParameterInfoController)
2018-01-16 12:25:02 +03:00
Andrey Vlasovskikh
9977d85358
PyCharm 2018.1 EAP version
2018-01-15 21:50:14 +03:00
Andrey Vlasovskikh
b58c3b4342
PyCharm 2018.1 EAP artwork
2018-01-15 21:47:33 +03:00