SaaSHub helps you find the best software and product alternatives Learn more →
Python Static Type Checker Projects
Optional static typing for PythonProject mention: It's Time for a Change: Datetime.utcnow() Is Now Deprecated | news.ycombinator.com | 2023-11-19
It's funny you should say this.
Reading this article prompted me to future-proof a program I maintain for fun that deals with time; it had one use of utcnow, which I fixed.
And then I tripped over a runtime type problem in an unrelated area of the code, despite the code being green under "mypy --strict". (and "100% coverage" from tests, except this particular exception only occured in a "# pragma: no-cover" codepath so it wasn't actually covered)
It turns out that because of some core decisions about how datetime objects work, `datetime.date.today() < datetime.datetime.now()` type-checks but gives a TypeError at runtime. Oops. (cause discussed at length in https://github.com/python/mypy/issues/9015 but without action for 3 years)
One solution is apparently to use `datetype` for type annotations (while continuing to use `datetime` objects at runtime): https://github.com/glyph/DateType
Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.
Python Static Type Checker related posts
It's Time for a Change: Datetime.utcnow() Is Now Deprecated
5 projects | news.ycombinator.com | 19 Nov 2023
What's New in Python 3.12
5 projects | news.ycombinator.com | 18 Oct 2023
Ask HN: Why are all of the best back end web frameworks dynamically typed?
4 projects | news.ycombinator.com | 5 Oct 2023
Extend Python VENV: Organize Dependencies Your Way
2 projects | dev.to | 11 May 2023
Mypy is a useless product. Please remove this trash from public use. We don't need it.
2 projects | /r/programmingcirclejerk | 30 Apr 2023
which backend technology do you see having the brightest future? (for jobs)
4 projects | /r/webdev | 9 Apr 2023
CS176a and Research Advice
2 projects | /r/UCSantaBarbara | 24 Mar 2023
A note from our sponsor - #<SponsorshipServiceOld:0x00007f0fa17c2ba0>
www.saashub.com | 3 Dec 2023