Friday, 6 December 2024

another broken piece of snake

Here we go again:

class SomePlot(PlotBase):
def __init__(self,\
data: list[tuple[array, array]],\
legendItems: list[str],\
b: float,\
aspect: float = None,\
showGrid: bool = True,\
xrange: tuple[float, float] = None,\
yrange: tuple[float, float] = None):
assert b > 0.0, f'Wrong b passed: {b}.'
super().__init__(data = data,\
axisLabels = ('x','y'),\
title= '...',
legendItems = legendItems,\
xrange = xrange,\
yrange= yrange,\
tics = None,\
aspect = aspect,
showGrid = showGrid)
 
Why the hell is some parlance thing showing me bullshit about unclosed parens in the call
to super's init and why there is this braindead stuff about this or that kind of args (named 
vs keyword?)  - me dunno nothin; super/Base ctor args are listed in the correct order, just in
case. Didn't help much though. 
 
Time to switch to normal languages, I've had enough.

Oh, another thing that drives me nuts is MsVsStudio that tries helping me while I'm typing, 
guessing namespaces. Half of the time when I write List<...> it puts some obscure
System.Windows.Documents that I don't care much about... Or the xml-like docs above
classes/functions - I recall writing to myself something along the lines of "TODO: consider
making this function virtual" and then there is some smart-ass service that gets in the way
and automagically turns it into <see langword="virtual"/>. Utterly annoying.

No comments:

Post a Comment