python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
completion/intellisense on (*args ,**kwargs) functions
Is there a way to have completion/intellisense on (*args ,**kwargs) functions?
For instance:
class GetVar(GetVarInterface):
@classmethod
def fromcustom(cls,locorvar,offset=0,varType="int&...
Eyal
Votes: 0
Answers: 2
How to add recursive `.json()` method to subclass of **NamedTuple**
I currently have a couple of classes following the pattern described in the code below:
from typing import NamedTuple
class Data(NamedTuple):
name: str,
value: float
def json(self):
...
Jadiel de Armas
Votes: 0
Answers: 1
How do I define a python size generic?
I want to use a non-type parameter in Python, somewhat like this c++ snippet (this is only an example).
template<int SIZE>
class SizedData {
void add(std::array<float,SIZE> point) { /* d...
Chase
Votes: 0
Answers: 0
mypy 0.942 rejects 'match' only on Linux?
mypy 0.942 judges this program correct on Mac OS 12.2.1 but rejects the second line as a syntax error on Ubuntu 18.04:
e = 'a'
match e:
case name if isinstance(e, str):
print('name', e)
...
Ben Kovitz
Votes: 0
Answers: 1