optapy / optapy

OptaPy is an AI constraint solver for Python to optimize planning and scheduling problems.

Home Page:https://www.optapy.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

__init__.py has no reference of some functions.

sakibraza-oodles opened this issue · comments

Screenshot from 2023-04-06 16-32-01
It throws the error there is no reference of HardSoftScore, Duration, SolverStatus etc in init.py in optapy8.31.1b0.

This is probably because Duration, HardSoftScore, and SolverStatus are pure Java types that are imported through JPype's import system; the imports do exist (for example,

from java.time import Duration # noqa
). We do generate stubs (https://github.com/optapy/optapy/blob/main/create-stubs.py) so type checkers are able to find their definition, although looking at the wheel, it appear they are missing; will investigate.