Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update packages for dependabot #88

Merged
merged 6 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions oqpy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ def expr_matches(a: Any, b: Any) -> bool:
class ExpressionConvertible(Protocol):
"""This is the protocol an object can implement in order to be usable as an expression."""

def _to_oqpy_expression(self) -> HasToAst:
... # pragma: no cover
def _to_oqpy_expression(self) -> HasToAst: ... # pragma: no cover


@runtime_checkable
Expand All @@ -355,8 +354,7 @@ class CachedExpressionConvertible(Protocol):

_oqpy_cache_key: Hashable

def _to_cached_oqpy_expression(self) -> HasToAst:
... # pragma: no cover
def _to_cached_oqpy_expression(self) -> HasToAst: ... # pragma: no cover


class OQPyUnaryExpression(OQPyExpression):
Expand Down
6 changes: 2 additions & 4 deletions oqpy/control_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,7 @@ def ForIn(
program: Program,
iterator: Iterable[AstConvertible] | range | AstConvertible,
identifier_name: Optional[str],
) -> contextlib._GeneratorContextManager[IntVar]:
... # pragma: no cover
) -> contextlib._GeneratorContextManager[IntVar]: ... # pragma: no cover


@overload
Expand All @@ -95,8 +94,7 @@ def ForIn(
iterator: Iterable[AstConvertible] | range | AstConvertible,
identifier_name: Optional[str],
identifier_type: type[ClassicalVarT],
) -> contextlib._GeneratorContextManager[ClassicalVarT]:
... # pragma: no cover
) -> contextlib._GeneratorContextManager[ClassicalVarT]: ... # pragma: no cover


@contextlib.contextmanager
Expand Down
Loading
Loading