FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Support non-method attributes in Protocols · Issue #524 · google/pytype · GitHub

This repository was archived by the owner on Sep 3, 2026. It is now read-only.
/ pytype Public archive
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

Support non-method attributes in Protocols #524

Description

Running on python3.6 the following code seems to fail without any informative message while passing on mypy. I would expect the same message I see when a method is missing.

from typing_extensions import Protocol
class Concrete:
    a: str
    
class MyProtocol(Protocol):
    a: str

def ff(x: MyProtocol) -> None:
    pass

ff(Concrete())

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL