Ask Your Question
2

Type Hinting

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

N Vim gravatar image

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

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
2

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

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

Wingware Admin gravatar image

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 https://wingware.com/doc/edit/helping...

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

2 followers

Stats

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

Seen: 13 times

Last updated: Mar 06