Skip to content

Commit

Permalink
Fix type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillkuettel committed Jun 27, 2024
1 parent 40d1ebb commit 45766f2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ test =
[flake8]
extend-select = B901, B903, B904, B908, TC2
per_file_ignores =
*.pyi: E301, E302, E305, E501, E701, F401, F403, F405, F822, TC
*.pyi: E301, E302, E305, E501, E701, F401, F403, F405, F822, TC, NQA102
tests/**.py: NQA104, TC
noqa-require-code = true
type-checking-sqlalchemy-enabled = true
2 changes: 1 addition & 1 deletion src/privatim/forms/fields/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def append_entry_from_field_storage(
# we fake the formdata for the new field
# we use a werkzeug MultiDict because the WebOb version
# needs to get wrapped to be usable in WTForms
formdata: MultiDict[str, 'RawFormValue'] = MultiDict()
formdata = MultiDict() # type: ignore
name = f'{self.short_name}{self._separator}{len(self)}'
formdata.add(name, fs)
return self._add_entry(formdata)
Expand Down
2 changes: 1 addition & 1 deletion src/privatim/models/password_change_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class PasswordChangeToken(Base):
token: Mapped[str] = mapped_column(String)
ip_address: Mapped[str] = mapped_column(String)

user: Mapped['User'] = relationship(lazy='joined')
user: Mapped[User] = relationship(lazy='joined')

def __init__(
self,
Expand Down

0 comments on commit 45766f2

Please sign in to comment.