Skip to content

Commit

Permalink
add rule to restrict from _decimal import Decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
zhPavel committed May 20, 2023
1 parent 0aed5fd commit bcc7bb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions astpath_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ class RuleMatch:
error_msg='Use type_tools.get_all_type_hints() instead of typing.get_type_hints()',
exclude=['src/adaptix/_internal/type_tools/basic_utils.py'],
),
ImportRule(
module='_decimal',
variable='Decimal',
error_msg='Import Decimal from public module "decimal"',
exclude=[],
),
]


Expand Down

0 comments on commit bcc7bb1

Please sign in to comment.