Ask Your Question

Type Hinting

asked 2018-10-13 00:44:00 -0600

N Vim's avatar

updated 2019-03-13 10:23:13 -0600

Does Wing Ide Pro 6.1.1-1 support type hinting. Like if return type is none for function and function is assigned to a variable Wing can catch.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-10-13 11:55:00 -0600

updated 2019-03-06 22:38:20 -0600

Wingware Admin's avatar

Wing tries to infer types on its own so if a function contains 'return ""' it should know that variables assigned the return value of that function are strings (possibly among other types).

You can also use various different methods for type hinting, including PEP 484 and PEP 526 type hinting or adding isinstance() assertions.  The details are described in

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-10-13 00:44:00 -0600

Seen: 746 times

Last updated: Mar 06 '19