Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Feb 22, 2024
1 parent c6bbddc commit 91642b6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
SHELL=/bin/bash

lint:
flake8
ruff http_message_signatures
mypy --check-untyped-defs http_message_signatures

test: lint
Expand Down
10 changes: 5 additions & 5 deletions http_message_signatures/signatures.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import collections
import datetime
import logging
from typing import Any, Dict, List, Sequence, Tuple, Type
from typing import Any, Dict, List, Optional, Sequence, Tuple, Type

import http_sfv

Expand Down Expand Up @@ -75,10 +75,10 @@ def sign(
message,
*,
key_id: str,
created: datetime.datetime = None,
expires: datetime.datetime = None,
nonce: str = None,
label: str = None,
created: Optional[datetime.datetime] = None,
expires: Optional[datetime.datetime] = None,
nonce: Optional[str] = None,
label: Optional[str] = None,
include_alg: bool = True,
covered_component_ids: Sequence[str] = ("@method", "@authority", "@target-uri"),
):
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ line-length = 120
exclude = ".*/version.py"
[tool.isort]
profile = "black"
[tool.ruff]
line-length=120

0 comments on commit 91642b6

Please sign in to comment.