mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Update testData for PyQuickDocTest.testOptionalParameterType so mock interpreter is not used anymore
This commit is contained in:
@@ -1 +1 @@
|
||||
<html><body><code>def <b>open</b>(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)<br>Inferred type: (file: <a href="psi_element://#typename#str">str</a>, mode: <a href="psi_element://#typename#str">str</a>, buffering: Integral, encoding: Optional[<a href="psi_element://#typename#str">str</a>], errors: Optional[<a href="psi_element://#typename#str">str</a>], newline: Optional[<a href="psi_element://#typename#str">str</a>], closefd: <a href="psi_element://#typename#bool">bool</a>, opener: Optional[(<a href="psi_element://#typename#str">str</a>, <a href="psi_element://#typename#int">int</a>) -> <a href="psi_element://#typename#int">int</a>]) -> Union[FileIO[<a href="psi_element://#typename#str">str</a>], TextIOWrapper[<a href="psi_element://#typename#unicode">unicode</a>]]<br><br></code>This is an alias for the builtin open() function.<br/><br/></body></html>
|
||||
<html><body><code>def <b>open</b>(encoding: str = None, errors: str = None)<br>Inferred type: (encoding: Optional[<a href="psi_element://#typename#str">str</a>], errors: Optional[<a href="psi_element://#typename#str">str</a>]) -> None<br></code></body></html>
|
||||
@@ -1,16 +1,4 @@
|
||||
def open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None):
|
||||
"""This is an alias for the builtin open() function.
|
||||
|
||||
:type file: str
|
||||
:type mode: str
|
||||
:type buffering: numbers.Integral
|
||||
:type encoding: str | None
|
||||
:type errors: str | None
|
||||
:type newline: str | None
|
||||
:type closefd: bool
|
||||
:type opener: ((str, int) -> int) | None
|
||||
:rtype: io.FileIO[bytes] | io.TextIOWrapper[unicode]
|
||||
"""
|
||||
def open(encoding: str = None, errors: str = None):
|
||||
pass
|
||||
|
||||
<the_ref>open("service")
|
||||
<the_ref>open()
|
||||
@@ -263,7 +263,7 @@ public class PyQuickDocTest extends LightMarkedTestCase {
|
||||
|
||||
// PY-17705
|
||||
public void testOptionalParameterType() {
|
||||
checkHTMLOnly();
|
||||
runWithLanguageLevel(LanguageLevel.PYTHON35, this::checkHTMLOnly);
|
||||
}
|
||||
|
||||
public void testHomogeneousTuple() {
|
||||
|
||||
Reference in New Issue
Block a user