- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Python type hints
Does anyone use Python type hints?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Haven't used that in all my Meraki projects. I'm familiar with it, but haven't seen the benefits of "complicating" my code. I find it a bit harder to read imo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm using it in most of my projects. It helps to understand what to expect from which function.
Really usefull for migrations, when you are e.g. creating an object and in the past it was just some dict/json.
-> So does function xy use the old or the new way? Type hint will let you know 😃
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So you are using it with human validation only, rather than with external tooling?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
well I've enabled "basic" type hint warnings in the IDE =D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That is another good question. Which IDE do you use?
I tend to use either IDLE or a text editor called UltraEdit (which I use for many other things).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Visual Studio & Visual Studio Code depending on the usecase
