Skip to content

Commit 39f7fe8

Browse files
committed
lint
1 parent ab8d16f commit 39f7fe8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

systemrdl/core/ComponentVisitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def visitParam_assignment(self, ctx: SystemRDLParser.Param_assignmentContext) ->
571571
#---------------------------------------------------------------------------
572572
def visitLocal_property_assignment(self, ctx: SystemRDLParser.Local_property_assignmentContext) -> None:
573573

574-
default = (ctx.DEFAULT_kw() is not None)
574+
default = ctx.DEFAULT_kw() is not None
575575

576576
if ctx.normal_prop_assign() is not None:
577577
prop_src_ref, prop_name, rhs = self.visit(ctx.normal_prop_assign())

systemrdl/core/StructVisitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, compiler: 'RDLCompiler', parent_component: 'comp.Component')
2222
def visitStruct_def(self, ctx: SystemRDLParser.Struct_defContext):
2323
self.compiler.namespace.enter_scope()
2424

25-
is_abstract = (ctx.ABSTRACT_kw() is not None)
25+
is_abstract = ctx.ABSTRACT_kw() is not None
2626
struct_name = get_ID_text(ctx.name)
2727

2828
if ctx.base is not None:

systemrdl/core/UDPVisitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def visitUdp_type(self, ctx: SystemRDLParser.Udp_typeContext) -> None:
122122
token = self.visit(ctx.udp_data_type())
123123
valid_type = self.datatype_from_token(token)
124124

125-
is_array = (ctx.array_type_suffix() is not None)
125+
is_array = ctx.array_type_suffix() is not None
126126
if is_array:
127127
# arrayify
128128
valid_type = rdltypes.ArrayPlaceholder(valid_type) # type: ignore

test/pylint.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,5 +570,5 @@ preferred-modules=
570570

571571
# Exceptions that will emit a warning when being caught. Defaults to
572572
# "BaseException, Exception".
573-
overgeneral-exceptions=BaseException,
574-
Exception
573+
overgeneral-exceptions=builtins.BaseException,
574+
builtins.Exception

0 commit comments

Comments
 (0)