New submission from Siyuan Ren <netheri...@gmail.com>:

Currently in module `typing` we have the following classes

* SupportsInt
* SupportsFloat
* SupportsComplex
* SupportsBytes
* SupportsRound

There is no reason that people only need these classes. They may need, say, 
`SupportsIndex` to denote all integer like types, `SupportsAdd` for arithmetic 
types, etc. It is best that the list of `SupportsXXX` are expanded to be as 
complete as possible, and even better, a mechanism for user specified 
`SupportsXXX` be provided.

----------
components: Library (Lib)
messages: 314141
nosy: Siyuan Ren
priority: normal
severity: normal
status: open
title: Feature request: more typing.SupportsXXX
type: enhancement
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33107>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to