MagicPython icon indicating copy to clipboard operation
MagicPython copied to clipboard

Type hint Warning

Open RuboGubo opened this issue 4 years ago • 0 comments
trafficstars

Issue Type: Feature Request

@dataclass class Entity: TotalValue: float debtor: str creditor: str

x = Entity(3.2, 'George', 'Fred')

x.debtor = 8

The IDE does not warn you that you have used an int instead of a string despite type hint

Extension version: 1.1.0 VS Code version: Code 1.55.0 (c185983a683d14c396952dd432459097bc7f757f, 2021-03-30T16:01:55.261Z) OS version: Windows_NT x64 10.0.19042

RuboGubo avatar Apr 04 '21 18:04 RuboGubo