python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How to avoid if..else(or any conditionals) while deciding which method to be called?
How to follow Open Close Principle without violating LSP while deciding which method to be invoked with different parameters in a statically typed language?
Consider the requirement like
Action 1: pe...

Mani
Votes: 0
Answers: 2
How do I get mypy to recognize that an argument of a function needs to be a subclass of a particular base class?
How do I get mypy to recognize that an argument of a function needs to be a subclass of a particular base class? Consider the following:
# main.py
class A: ...
class B(A):
def f(self, x):
prin...
user32882
Votes: 0
Answers: 1