mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 23:05:17 +08:00
Add an isinstance test.
This commit is contained in:
1 parent
e18c8200dd
commit
1d8b71ba56
1 file changed
+8
@@ -29,6 +29,14 @@ if 2:
|
||||
#? str()
|
||||
ass
|
||||
|
||||
# -----------------
|
||||
# invalid arguments
|
||||
# -----------------
|
||||
|
||||
if isinstance(wrong, str()):
|
||||
#?
|
||||
wrong
|
||||
|
||||
# -----------------
|
||||
# in functions
|
||||
# -----------------
|
||||
|
||||
Reference in new issue
Block a user