StackOverflow Questions for Tag: abstract-base-class

joxirerehufe
joxirerehufe

Reputation: 1

Inheriting from type and typing.Mapping: "TypeError: descriptor '__subclasses__' of 'type' object needs an argument"

Score: 0

Views: 151

Answers: 1

Read More
Ben Kovitz
Ben Kovitz

Reputation: 5030

How to get an abstract dataclass to pass mypy?

Score: 16

Views: 6772

Answers: 3

Read More
John Kealy
John Kealy

Reputation: 1893

How to create a Python ABC interface pattern using Pydantic

Score: 3

Views: 9746

Answers: 1

Read More
junfan02
junfan02

Reputation: 161

What is the point of passing in params to an abstract base class in this manner?

Score: 0

Views: 131

Answers: 0

Read More
Visula Kavinda
Visula Kavinda

Reputation: 3

how can vb.net make inherit class with selected variable from base calss

Score: 0

Views: 91

Answers: 1

Read More
Nick
Nick

Reputation: 972

Why default assignment operator is not called from assignment-from-base-class operator?

Score: 0

Views: 246

Answers: 1

Read More
Derek Chiang
Derek Chiang

Reputation: 3410

Using abstract base class VS plain inheritance

Score: 22

Views: 6160

Answers: 1

Read More
Iti Tyagi
Iti Tyagi

Reputation: 3671

Return Base class shared pointer using derived class C++

Score: 0

Views: 956

Answers: 1

Read More
charlieshu
charlieshu

Reputation: 43

Django: Override model methods from abstract base class models

Score: 2

Views: 1141

Answers: 1

Read More
Tabea
Tabea

Reputation: 103

Use subclasses of abstract outer class in nested class

Score: 1

Views: 1003

Answers: 1

Read More
ResponsiblyUnranked
ResponsiblyUnranked

Reputation: 1866

How to write mypy-safe factory for getting a class instance based on required class attributes?

Score: 1

Views: 406

Answers: 0

Read More
road_to_quantdom
road_to_quantdom

Reputation: 1361

Cloning Derived classes from Base classes

Score: 2

Views: 117

Answers: 1

Read More
tguichaoua
tguichaoua

Reputation: 173

isinstance and abstract base class

Score: 0

Views: 395

Answers: 1

Read More
HeWeMel
HeWeMel

Reputation: 11

How can I specify a generic MutableSet, that demands existence of a update method, in a typed signature (Python >3.9)?

Score: 1

Views: 139

Answers: 1

Read More
phytebunk
phytebunk

Reputation: 13

Python: Implement base class for different types

Score: 1

Views: 511

Answers: 2

Read More
ElRudi
ElRudi

Reputation: 2324

Initialize subclass instance when creating new Base class instance

Score: 0

Views: 1100

Answers: 2

Read More
Gandalf1783
Gandalf1783

Reputation: 11

C++: Segmentation fault - Calling function through std::vector<> using a virtual function and abstract class

Score: -1

Views: 423

Answers: 2

Read More
Jamoliddin Nosirov
Jamoliddin Nosirov

Reputation: 11

How to ask the user to input the number in my code in order to print out the result

Score: 0

Views: 353

Answers: 1

Read More
Jonny Shanahan
Jonny Shanahan

Reputation: 421

Best implementation in python for different versions of a class, all with same methods which will get chosen based on environment variable?

Score: 2

Views: 1189

Answers: 1

Read More
Mr. Clear
Mr. Clear

Reputation: 652

C++ template specialisation for abstract base class

Score: 2

Views: 347

Answers: 1

Read More
PreviousPage 2Next