Semyon Proshev
75b3091a34
Update testData for PyQuickDocTest.testOptionalParameterType so mock interpreter is not used anymore
2016-12-28 14:59:09 +03:00
fitermay and Semyon Proshev
aab0d3e87a
PY-19826 Fixed: Generic type of list not inferred when created from tuple
...
Inherit PyTupleType from PyCollectionType so that getElementTypes().get(i) returns type of 'i'-th element in the tuple
2016-10-13 21:28:18 +03:00
Semyon Proshev
87f0be9f32
PY-17705 Fixed: Awkward formatting of parameter types in Quick Documentation for io.open()
...
Don't forget to cache type if it was converted to Optional
2016-06-17 18:40:15 +03:00
Andrey Vlasovskikh
a1d2464aa0
Parse references to assigned 'typing' expressions inside docstrings (PY-16303)
2015-10-21 17:34:12 +03:00
Mikhail Golubev
956587f1d3
Merge branch 'east825/google-code-style-docstrings'
...
Conflicts:
python/src/com/jetbrains/python/documentation/PyDocumentationBuilder.java
python/src/com/jetbrains/python/documentation/PythonDocumentationProvider.java
python/src/com/jetbrains/python/psi/impl/PyFunctionBuilder.java
python/testData/quickdoc/NumPyOnesDoc.html
2015-09-15 16:13:22 +03:00
Andrey Vlasovskikh
5e8fc8c3b4
Merge branch 'vlan/pyi'
2015-09-09 11:46:04 +03:00
Ekaterina Tuzova
057c23e3f4
fixed PY-14822 Show external documentation about Python keywords
...
added builtin documentation for python keywords
2015-09-06 21:08:45 +03:00
Andrey Vlasovskikh
a07b4762d0
Parse "foo, optional" as Union[foo, None] as a workaround for parameters with default values (PY-15298)
...
It results in false negatives for optional parameters with non-None
default values, but at least we don't need to switch from stubs to AST
in the type checker inspection for every function with optional
parameters.
2015-09-02 20:22:30 +03:00
Mikhail Golubev
31e755b87a
PY-4717 Detect Numpy docstring from its content
2015-09-02 14:34:25 +03:00
Ekaterina Tuzova
4eb12db5fb
fixed numpy tests
2015-04-06 14:17:58 +03:00
Andrey Vlasovskikh
9a03e52441
Renamed 't1 | t2 | ...' to 'Union[t1, t2, ...]' according to PEP 484 (PY-15206)
2015-03-30 20:41:08 +03:00
Andrey Vlasovskikh
f1d939b9e4
Renamed 'unknown' to 'Any' for displaying the 'null' type (PY-15206)
2015-03-30 19:34:12 +03:00
Andrey Vlasovskikh
c93310b398
Don't resolve unqualified types in docstrings using class index (PY-12864)
...
It may result in false positives where our index-based guess is
incorrect.
2014-11-12 20:44:53 +03:00
Alexander Marchuk and Andrey Vlasovskikh
3be9fb4c44
fix and tests for PY-8836 (false positive after ndarray and int multiplication) and PY-13422 (wrong return type in numpy.ones quickdoc)
...
Conflicts:
python/testSrc/com/jetbrains/python/PyTypeTest.java
2014-10-01 18:52:18 +04:00
Andrey Vlasovskikh
375938e79a
Use '|' operator instead of 'or' for union types (PY-10423)
2013-07-30 20:20:42 +04:00
Andrey Vlasovskikh
262f51fd53
Use the type of the original element for Ctrl-Hover info (PY-10386)
2013-07-29 19:01:31 +04:00
Dmitry Trofimov
e38b35ada5
Links for function types in quickdoc (PY-3404).
2012-11-04 19:11:48 +01:00
Dmitry Trofimov
023df74d6d
Links for types in quickdoc.
2012-11-04 17:28:21 +01:00
Ekaterina Tuzova
96f59f6f6a
fixed test data
2012-07-23 15:14:10 +04:00
Ekaterina Tuzova
d14a19c5b8
fixed item 3 of PY-5673 Incomplete/incorrect rendering of Sphinx/rst docstrings
2012-05-05 17:25:23 +04:00
Andrey Vlasovskikh
0a23dfe269
Fixed SOE in PyDefUseUtil.getLatestDefs (EA-34435)
2012-03-23 21:29:27 +04:00
Dmitry Jemerov
3b78c94b35
improve Ctrl-hover popups, show name of function that owns the parameter (PY-4155)
2011-08-09 20:04:14 +02:00
Andrey Vlasovskikh
694dadf51a
Fixed nondeterministic ordering in union types, added test data (PY-3496, CR-PY-170)
2011-08-09 21:25:15 +04:00
Andrey Vlasovskikh
e433374536
Refactored Python docstring parsing, more careful handling of formatting inside type tags
2011-07-26 21:36:11 +04:00
Andrey Vlasovskikh
e5049069cc
Initial type checker inspection for Python
2011-06-15 21:21:09 +04:00
Dmitry Jemerov
19ca87905a
support for class and instance attributes in Ctrl-Q
2011-05-02 19:43:12 +02:00
Dmitry Jemerov
82397ca780
show parameter description from epydoc in Ctrl-Q
2011-04-04 20:58:25 +02:00
Dmitry Jemerov
668f0a4c85
couple of fixes for docstring indentation (PY-2667)
2011-01-19 12:27:24 +01:00
Dmitry Cheryasov
07ecba288c
Tests and cosmetics for quickdoc.
2010-09-13 17:07:08 +03:00
Dmitry Cheryasov
a1e52d975b
Improved quickdoc tests.
2010-09-05 14:20:21 +03:00
Dmitry Cheryasov
d747f292c0
Data for updated quickdoc tests.
2010-09-03 18:10:42 +03:00
Dmitry Cheryasov
86da4b3d72
PY-895: show constructor's quickdoc on constructor call.
...
Also: links to classes inside method and class quickdocs.
Adds tests for property quickdocs.
2010-09-03 18:10:12 +03:00
Dmitry Jemerov
8ae978c816
enable showing inferred return types for methods in quick doc; fix quick doc tests
2010-04-26 22:13:38 +04:00
Dmitry Cheryasov
cb7d90da18
Updated to match changes of 53706e7f6177c1deac08ba8684b76b0f7d1a733d.
2010-04-08 21:05:29 +03:00
Dmitry Jemerov
67d486ebcd
show class quick doc if constructor isn't documented (part of PY-381)
2010-02-01 21:17:48 +03:00
Dmitry Cheryasov
d92d0465f6
Updated overlooked test data in quickdoc/Module.html
2009-12-02 06:29:26 +02:00
Dmitry Cheryasov
676b2243da
Rewrote QuickDoc code, cleaner HTML creation, closes PY-231 partly.
2009-11-29 05:07:35 +02:00
Dmitry Cheryasov
384c584ae7
Tiny fixes in PyQuickDocTest data
2009-11-11 14:05:22 +02:00
Dmitry Cheryasov
7ecbbade46
Now ^Q works for unqualified imported names. Fixes PY-229.
2009-09-17 04:22:17 +04:00
Dmitry Cheryasov
a714346454
Forgotten change of testMethod for corrected decorators rendering.
2009-07-17 12:41:52 +04:00
Dmitry Cheryasov
801ea7b5c4
Enhance quick doc generation; copy inherited docs for overridden methods. Add module quickdoc (PY-166). Add tests.
2009-06-08 01:33:35 +04:00