Skip to content

Commit

Permalink
🏷️ [#4650] Enable type checking on entire registrations email package
Browse files Browse the repository at this point in the history
This should encourage people to pass the proper options and take into
account optional/required configuration parameters.
  • Loading branch information
sergei-maertens committed Dec 30, 2024
1 parent e448544 commit c93f7cc
Show file tree
Hide file tree
Showing 4 changed files with 107 additions and 105 deletions.
3 changes: 1 addition & 2 deletions pyright.pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ include = [
"src/openforms/emails/templatetags/cosign_information.py",
# Registrations
"src/openforms/registrations/tasks.py",
"src/openforms/registrations/contrib/email/config.py",
"src/openforms/registrations/contrib/email/plugin.py",
"src/openforms/registrations/contrib/email/",
"src/openforms/registrations/contrib/stuf_zds/options.py",
"src/openforms/registrations/contrib/stuf_zds/plugin.py",
"src/openforms/registrations/contrib/stuf_zds/typing.py",
Expand Down
2 changes: 1 addition & 1 deletion src/openforms/registrations/contrib/email/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class EmailConfig(SingletonModel):
],
)

class Meta:
class Meta: # pyright: ignore[reportIncompatibleVariableOverride]
verbose_name = _("Email registration configuration")

def __str__(self):
Expand Down
Loading

0 comments on commit c93f7cc

Please sign in to comment.