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


Groups > comp.lang.python > #67173

Descriptor type hinting

From "Joseph L. Casale" <jcasale@activenetwerx.com>
Subject Descriptor type hinting
Date 2014-02-27 22:21 +0000
Newsgroups comp.lang.python
Message-ID <mailman.7447.1393539762.18130.python-list@python.org> (permalink)

Show all headers | View raw


How does one satisfy a lint/type checker with the return value of a class method decorated
with a descriptor? It returns a dict, and I want the type hinting to suggest this versus the
str|unknown its defaults to.

Thanks,
jlc

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Descriptor type hinting "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-02-27 22:21 +0000
  Re: Descriptor type hinting Steven D'Aprano <steve@pearwood.info> - 2014-02-28 02:05 +0000
    RE: Descriptor type hinting "Joseph L. Casale" <jcasale@activenetwerx.com> - 2014-02-28 02:16 +0000

csiph-web