mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Assist in specifying types via docstrings
(Intention for docstring and intention for assertion)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
def foo(a, b):
|
||||
assert isinstance(a, object)
|
||||
a.
|
||||
b = 1
|
||||
@@ -0,0 +1,6 @@
|
||||
def foo(a, b):
|
||||
"""
|
||||
:type a: object
|
||||
"""
|
||||
a.
|
||||
b = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
def foo(a, b):
|
||||
a<caret>.
|
||||
b = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
def foo(a, b):
|
||||
a<caret>.
|
||||
b = 1
|
||||
Reference in New Issue
Block a user