StackOverflow Questions for Tag: structural-typing

shiomi
shiomi

Reputation: 1

Pylance not allowing structural subtyping with built-in types

Score: 0

Views: 186

Answers: 1

Read More
rokkuran
rokkuran

Reputation: 3

Python typing: concrete class that implements protocol with method that takes another protocol as argument

Score: 0

Views: 502

Answers: 1

Read More
fmg
fmg

Reputation: 925

Python Protocols and Mutability

Score: 1

Views: 32

Answers: 0

Read More
Anaphory
Anaphory

Reputation: 6400

How do I test whether two structural types are subtypes of each other?

Score: 0

Views: 68

Answers: 1

Read More
Harald Husum
Harald Husum

Reputation: 1159

When does Callable lack __module__?

Score: 10

Views: 467

Answers: 1

Read More
Géry Ogam
Géry Ogam

Reputation: 8027

How to use __subclasshook__ with Mypy?

Score: 1

Views: 404

Answers: 2

Read More
ralphje
ralphje

Reputation: 995

Specifying additional subclassed bounds of a TypeVar in Python typing

Score: 3

Views: 1532

Answers: 1

Read More
MaKaNu
MaKaNu

Reputation: 1008

How to deal with Optional[int] in Protocol classes

Score: 1

Views: 332

Answers: 1

Read More
ThomasNicholas
ThomasNicholas

Reputation: 1382

All bases of a protocol must be protocols- is typing.MutableMapping not a Protocol?

Score: 9

Views: 981

Answers: 0

Read More
Peter Wone
Peter Wone

Reputation: 18739

Typescript type compatibility test

Score: 6

Views: 1832

Answers: 2

Read More
pathikrit
pathikrit

Reputation: 33409

Scala: Accessing package visible methods through structural types outside the package

Score: 14

Views: 457

Answers: 1

Read More
Valeri Tonchev
Valeri Tonchev

Reputation: 105

Typescript structural typing

Score: 1

Views: 65

Answers: 0

Read More
Alexander Mills
Alexander Mills

Reputation: 99959

Cannot use struct as the type struct {...}

Score: -2

Views: 691

Answers: 2

Read More
Bergi
Bergi

Reputation: 664164

TypeScript does not expand generic and complains about type arguments being not comparable

Score: -3

Views: 462

Answers: 1

Read More
Kamesh
Kamesh

Reputation: 145

Structural typing with generics

Score: 0

Views: 608

Answers: 0

Read More
StevinWilson
StevinWilson

Reputation: 65

How to provide type hint for a function that returns an Protocol subclass in Python?

Score: 3

Views: 1791

Answers: 1

Read More
nodakai
nodakai

Reputation: 8001

SRTP member constraits can't see raw fields of C# classes?

Score: 0

Views: 104

Answers: 0

Read More
PMcC
PMcC

Reputation: 143

Type guards for types with the same fields

Score: 0

Views: 340

Answers: 1

Read More
tribbloid
tribbloid

Reputation: 3838

In Scala 3: Why runtime pattern matching can't work reliably on duck type using JVM reflection?

Score: 1

Views: 99

Answers: 1

Read More
Michael Lorton
Michael Lorton

Reputation: 44376

Approximating structural typing in a Golang function

Score: 1

Views: 161

Answers: 1

Read More
PreviousPage 1Next