Skip to content

Commit 99c0ed2

Browse files
committed
refactor: Rename strict option to more explicit
1 parent 5836a86 commit 99c0ed2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import os
22
import sys
33

4-
import sphinx_rtd_theme # type: ignore[import]
4+
import sphinx_rtd_theme
55

66
sys.path.insert(0, os.path.abspath('..'))
77

netsgiro/objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def add_payment_request(
365365
reference: Optional[str] = None,
366366
payer_name: Optional[str] = None,
367367
bank_notification: Union[bool, str] = False,
368-
strict: bool = False,
368+
validate_due_date: bool = False,
369369
) -> 'PaymentRequest':
370370
"""Add an AvtaleGiro payment request to the assignment.
371371
@@ -380,7 +380,7 @@ def add_payment_request(
380380
self.type == AssignmentType.TRANSACTIONS
381381
), 'Can only add payment requests to transaction assignments'
382382

383-
if strict:
383+
if validate_due_date:
384384
# Make sure we're not passing invalid due dates
385385
validate_minimum_date(due_date)
386386

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enable-extensions = TC, TC2
3030
[mypy]
3131
strict = True
3232
show_error_codes = True
33-
ignore_missing_imports = False
33+
ignore_missing_imports = True
3434
warn_redundant_casts = True
3535
warn_unused_configs = True
3636
warn_unused_ignores = True

0 commit comments

Comments
 (0)