Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2854 > unrolled thread
| Started by | "Stefan Richthofer" <Stefan.Richthofer@gmx.de> |
|---|---|
| First post | 2018-05-17 08:07 +0200 |
| Last post | 2018-05-17 08:07 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python.announce
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
pytypes 1.0 beta 4 released "Stefan Richthofer" <Stefan.Richthofer@gmx.de> - 2018-05-17 08:07 +0200
| From | "Stefan Richthofer" <Stefan.Richthofer@gmx.de> |
|---|---|
| Date | 2018-05-17 08:07 +0200 |
| Subject | pytypes 1.0 beta 4 released |
| Message-ID | <mailman.131.1526542265.2761.python-announce-list@python.org> |
pytypes 1.0 beta 4 has been released. https://github.com/Stewori/pytypes Beneath several bugfixes, the most notable new feature is a utility function for explicitly resolving forward references, e.g. of a manually defined type. Another significant improvement is proper support for tuple ellipses. The converter utility stubfile_2_converter, alias typestubs, was improved significantly. It can now be used to dump type info from a module (or other stubfile) into a stubfile, supporting type comments and ordinary type annotations as input or output. E.g. it can convert type comments from Python 2 code to an original Python 3 style stubfile and vice versa. pytypes is a toolbox for PEP-484 style typing, explicitly supporting Python >= 3.3, Python 2.7, Jython >= 2.7.1, PyPy 3. Its main features include: - Runtime typechecking - Auto-annotating code from runtime observations in form of stubfiles - Utility functions: * PEP 484 aware subtype and instance checking: is_of_type(obj, tp) and is_subtype(subtype, supertype) * get_type_hints that takes stubfiles and type comments into account - Typesafe method overriding - Pull type information from stubfiles or type comments into __annotations__ for use by other tools - all features smoothly work with OOP, i.e. methods, static methods, class methods, properties pytypes is still in beta phase. File issues as the occur. Help is welcome! Github: https://github.com/Stewori/pytypes/releases PyPI: https://pypi.python.org/pypi/pytypes License: Apache 2.0 Enjoy! -Stefan
Back to top | Article view | comp.lang.python.announce
csiph-web