Skip to content

Commit

Permalink
update packages for dependabot (#88)
Browse files Browse the repository at this point in the history
* update urllib3, cryptography and jinja2

* upgrade crytography to 42.0.2

* update lock and black

* update lock
  • Loading branch information
jcjaskula-aws committed Jun 17, 2024
1 parent 1875134 commit 08671da
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 105 deletions.
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

0 comments on commit 08671da

Please sign in to comment.