Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2854

pytypes 1.0 beta 4 released

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "Stefan Richthofer" <Stefan.Richthofer@gmx.de>
Newsgroups comp.lang.python.announce
Subject pytypes 1.0 beta 4 released
Date Thu, 17 May 2018 08:07:48 +0200
Lines 46
Approved python-announce-list@python.org
Message-ID <mailman.131.1526542265.2761.python-announce-list@python.org> (permalink)
References <trinity-ccdbea4e-7004-4943-8f5d-bbfd204448ab-1526537268050@3c-app-gmx-bs17>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 5GMU7Or+0RASDe7QDi/iDAhAyH/HksV2M5NftgjvJ4WA==
Return-Path <Stefan.Richthofer@gmx.de>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; 'subject:released': 0.04; 'pypy': 0.05; 'url- ip:192.30.253.112/32': 0.07; 'url-ip:192.30.253.113/32': 0.07; 'url-ip:192.30.253/24': 0.07; 'url:github': 0.07; 'url:releases': 0.07; 'alias': 0.09; 'methods,': 0.09; 'oop,': 0.09; 'received:gmx.net': 0.09; 'references,': 0.09; 'runtime': 0.09; 'static': 0.09; 'url-ip:192.30/16': 0.13; 'python': 0.15; '3.3,': 0.16; 'annotations': 0.16; 'from:addr:gmx.de': 0.16; 'github:': 0.16; 'license:': 0.16; 'observations': 0.16; 'overriding': 0.16; 'subject:1.0': 0.16; 'subject:beta': 0.16; 'subtype': 0.16; 'toolbox': 0.16; 'tuple': 0.16; 'apache': 0.16; '1.0': 0.18; 'properties': 0.24; 'module': 0.25; 'defined': 0.26; 'url- ip:151.101.192/24': 0.26; 'url-ip:151.101.0.223/32': 0.26; 'url- ip:151.101.128.223/32': 0.26; 'url-ip:151.101.192.223/32': 0.26; 'url-ip:151.101.64.223/32': 0.26; 'url-ip:151.101.0/24': 0.26; 'url-ip:151.101.128/24': 0.26; 'url-ip:151.101.64/24': 0.26; 'input': 0.27; '(or': 0.27; 'convert': 0.29; '2.0': 0.32; 'e.g.': 0.32; 'explicitly': 0.32; 'pep': 0.32; 'ordinary': 0.33; 'utility': 0.33; 'code': 0.33; 'url-ip:151.101/16': 0.34; 'url- ip:151/8': 0.34; 'feature': 0.35; 'another': 0.35; 'method': 0.36; 'still': 0.36; 'file': 0.37; 'url-ip:192/8': 0.37; 'instance': 0.38; 'function': 0.38; 'url:python': 0.39; 'url:org': 0.39; 'forward': 0.61; 'resolving': 0.62; 'type.': 0.62; 'information': 0.62; 'manually': 0.63; 'account': 0.68; 'include:': 0.69; 'converter': 0.70; 'received:212.227.17': 0.70; 'improved': 0.79; 'enjoy!': 0.84; 'functions:': 0.84; 'welcome!': 0.84; 'notable': 0.91; 'improvement': 0.93
Importance normal
Sensitivity Normal
X-Priority 3
X-Provags-ID V03:K1:a0OtShl+U6JZpUAjdkjcPamRRyrdXpZtxFtf2GUb0dF /VORIiZkzn93GHQBl+GF8HHbHTq9TYVlse/z97yMCmyBLOwfsz uG2Q6wo/DumdOL1oBEUVxaw3tfGAPeFk4t3inD9X9kHOzc3CWG Icd7wQ86F6OCkXFza5rCfTCFLD0YtzDHox4URUa/aPFgsgpckH b7q+lQM/qj/U1HsliWImM+IPMroMdihiPKiJPoyoJfR6oPu2mm TYNGz6pT+3N3laGkrYr7oxs9sAyucGopW9uhysqD7FscY2T6Ws ZG0k5E=
X-UI-Out-Filterresults notjunk:1;V01:K0:ScPbKManKPc=:SbcB9DIJGgkWRq4RVnH/f8 VdsN0DQ1YX5A7sTCrLToPPsNOKWqPWchUTs6fOYcQ7qu3wRKqkUe75nZIh1ZXDnMf2fA+eVAt Rtl2ifO0XrTwQjJwWjMmy61JGvVfQMk+l/2gXnhbtJ+r6WRz8+xq0lvNXhuUwfpfy+Pr20t6b rjiIM7gbhIdoqyoOakEAS5MNtGIiROEHyLOJgQTLMLou9pxo4Uxg666D8qFwAxuZSZgbUPaww yc4UwtpEZohzk2/8sVc0RGZ5l1xFHUWtCoMB6IFD3RsZQmv4RPxG3Gb7tMbTUfWUCX5okvivN KYWhlG6dq8A7jKNenFSxV8h/MZ0u2UZOeIWkmWAshQfdr8AI6Kh/Xxntc0G3L6k/fyUwTJGQ/ zjvko4yhyVy03mFIkaSL9L6uaRFDTSf1MAtur8DNQDzsb8OPNxEA0h9T/KVdAG5ukZUXDqnoh xdVPNGYjgs1LxhILWO8ty7iUgO6mioasot6ZcBDcLwWi8t/Mg0eo
X-Mailman-Approved-At Thu, 17 May 2018 03:31:04 -0400
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.26
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <trinity-ccdbea4e-7004-4943-8f5d-bbfd204448ab-1526537268050@3c-app-gmx-bs17>
Xref csiph.com comp.lang.python.announce:2854

Show key headers only | View raw


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 comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

pytypes 1.0 beta 4 released "Stefan Richthofer" <Stefan.Richthofer@gmx.de> - 2018-05-17 08:07 +0200

csiph-web