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] and Const[T] in pynecore.types keep overloads that differ only by qualifier apart, also around a Series parameter
  • 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.islast is true on the final history bar in live mode
  • for counters take the type of their from value; float-before-int container ternaries, enum-keyed maps, request.seed and ta.vwap are typed
  • ta.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 @overload group 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 float version next to a float one, 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, varip or 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 an na initial value produced an array of arrays; the elements now get the element type’s na
  • A user method calling a built-in method of the same name (a clear method that calls .clear() on an array) called itself instead of the built-in
  • v5 scripts whose if or switch yields 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

This website uses cookies and similar technologies. By continuing to use the site, you accept this. Details in our Privacy Policy.