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 — mypy is confused by property aliases · Issue #1934 · gitpython-developers/GitPython Closed Labels DescriptionThank you very much for this very useful python package. Unfortunately mypy is very confused by property aliases such as @property def references(self) -> "IterableList[Reference]": """A list of :class:`~git.refs.reference.Reference` objects representing tags, heads and remote references. :return: ``git.IterableList(Reference, ...)`` """ return Reference.list_items(self) # Alias for references. refs = references that can be found in You can reproduce the issue with the following from git.repo import Repo repo = Repo() for branch in repo.branches: print(branch) about which I am not aware of any fix that would not uglify the code here, and that mypy issue doesn’t seem likely to see improvement in the near future. This is sad, but doing all the work to add type annotations and still having users facing incomprehensible error messages in perfectly legitimate code is also sad. Could you please tell me whether you would welcome a PR “fixing” this? Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402520 — 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. |