GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ByteString, specifying length for any bytes-like variable · Issue #997 · python/typing Open Labels topic: featureDiscussions about new features for Python's type annotationsDiscussions about new features for Python's type annotations DescriptionThis request is a combination of two additions to
Ideally, Python typing would allow specifying bytes-like of (a) any length, (b) fixed length or (c) min and/or max length. Potentially also separately specifying if a writable buffer is expected. While I don't expect for mypy to be able to check for all of that, it would at least be nice to include such information in the annotations for documentation purposes, avoiding the use of docstrings for parameter definitions where names and types are descriptive enough. Is there any way to do this without causing mypy errors, considering that I would rather have no type checking but documentative annotations than what the current implementation can do? Reacted by Max Chernoff and STEHLE-hermle Activity
MetadataMetadataAssigneesLabelstopic: featureDiscussions about new features for Python's type annotationsDiscussions about new features for Python's type annotations ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |