Skip to content

Instantly share code, notes, and snippets.

View eddiebergman's full-sized avatar
💭

Eddie Bergman eddiebergman

💭
View GitHub Profile
@eddiebergman
eddiebergman / main.py
Created February 9, 2022 23:25 — forked from mypy-play/main.py
Shared via mypy Playground
from abc import abstractmethod
from typing import TypeVar, Generic, Protocol
class P1(Protocol):
def predict(self): ...
class P2(Protocol, P1):
def predict_proba(self): ...
T1 = TypeVar("T1", bound=P1)