StackOverflow Questions for Tag: abstract-base-class

Vincent
Vincent

Reputation: 8796

What is isinstance with a dictionary and abc.Mapping from collections doing?

Score: 21

Views: 25158

Answers: 3

Read More
Jasha
Jasha

Reputation: 7619

typing.Protocol class `__init__` method not called during explicit subtype construction

Score: 12

Views: 4997

Answers: 2

Read More
jpmelos
jpmelos

Reputation: 3562

Why won't mypy understand this object instantiation?

Score: 6

Views: 668

Answers: 1

Read More
xtofl
xtofl

Reputation: 41509

Python: mark method as implementing/overriding

Score: 1

Views: 1300

Answers: 2

Read More
Greedo
Greedo

Reputation: 5523

Abstract base class or typing.Protocol for supporting __str__

Score: 1

Views: 2583

Answers: 2

Read More
YE1ET
YE1ET

Reputation: 33

Uses different Enum in different inherited class

Score: 1

Views: 46

Answers: 1

Read More
MaartenB
MaartenB

Reputation: 475

How to type-hint a variable whose type is any subclass of a generic base class?

Score: 0

Views: 357

Answers: 1

Read More
Alex MacCaw
Alex MacCaw

Reputation: 984

Inherited class "invalid pointer error" when calling virtual functions

Score: 1

Views: 1868

Answers: 5

Read More
Tobias
Tobias

Reputation: 6507

What is a "nearly-empty" class?

Score: 2

Views: 667

Answers: 4

Read More
nly
nly

Reputation: 177

What do *you* use C++ ABC constructors for?

Score: 0

Views: 1748

Answers: 6

Read More
Tomas
Tomas

Reputation: 530

Should I use an API/ABC when designing a class used by several in C++?

Score: -1

Views: 120

Answers: 2

Read More
user2849274
user2849274

Reputation: 19

Abstract Base class not returning correctly

Score: 0

Views: 115

Answers: 1

Read More
Fabian
Fabian

Reputation: 4211

Can I define a constructor in an abstract base class?

Score: 1

Views: 2494

Answers: 2

Read More
yougotborked
yougotborked

Reputation: 1

Child classes implement a MooseX::Interface with MooseX::ABC (Abstract Base Class)

Score: 0

Views: 53

Answers: 1

Read More
Mordachai
Mordachai

Reputation: 9642

How / Is it possible to have a vector<unique_ptr<ABC>>?

Score: 1

Views: 191

Answers: 2

Read More
Derek Rocco
Derek Rocco

Reputation: 11

Requiring Child Classes to call base.Foo() in overrides

Score: 1

Views: 210

Answers: 1

Read More
Joe
Joe

Reputation: 57

class B derived from an abstract base class A, and how can i use singleton in class B?

Score: 0

Views: 93

Answers: 1

Read More
Jazzwave06
Jazzwave06

Reputation: 1851

How to implicitly use the base definition of a method

Score: 1

Views: 52

Answers: 1

Read More
simonwo
simonwo

Reputation: 3391

Can a Python Abstract Base Class enforce function signatures?

Score: 52

Views: 15619

Answers: 3

Read More
user21113865
user21113865

Reputation: 189

Can you force derived class from a bass class to define specific member variables in python?

Score: 0

Views: 39

Answers: 1

Read More
PreviousPage 1Next