PyneCore v6.15.0 released — overload calls are now decided from the static types, as in…
Features
- The type pass settles every overload call site and the runtime binds that implementation directly; new codes E0071 / E0072 report the calls it cannot decide
Simple[T]andConst[T]inpynecore.typeskeep overloads that differ only by qualifier apart, also around aSeriesparameter- Provider hub (
python -m pynecore.core.plugin.hub): many live processes share one provider connection, and the CCXT provider holds its market list once - Edge profile admits Pine enums and the prefix unpack
a, b = f(...)[:2]
Fixes
barstate.islastis true on the final history bar in live modeforcounters take the type of theirfromvalue; float-before-int container ternaries, enum-keyed maps,request.seedandta.vwapare typedta.sma(close, source=close)-style double arguments are reported (E0066) instead of failing at run time- Several broker reconcile false alarms around fills in flight and restarted positions
Performance
- Modules importing an
@overloadgroup run their AST steps natively again
Full release notes: https://github.com/PyneSys/pynecore/releases/tag/v6.15.0
PyneComp v6.1.4 — overloaded functions that differ only by simple / series now convert to scripts that run the same version TradingView does.
Fixes
- Overloads that differ only in a parameter’s qualifier (a
simple floatversion next to afloatone, also when the parameter’s history is read) were converted to identical Python signatures, so the script could run the wrong version; they are now told apart (such scripts need PyneCore 6.15.0) - A
var,varipor history-read variable in one branch or loop could be overwritten by a same-named variable declared later in a sibling block; each now keeps its own value array.new<T>()with annainitial value produced an array of arrays; the elements now get the element type’sna- A user method calling a built-in method of the same name (a
clearmethod that calls.clear()on an array) called itself instead of the built-in - v5 scripts whose
iforswitchyields a number in one branch and a bool in another now convert to a bool in every branch - Long import lines in converted scripts are wrapped at 99 characters