File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ disable=
94
94
inconsistent-return-statements, # TODO: Make returns consistent
95
95
consider-merging-isinstance, # TODO: Merge isinstance where appropriate
96
96
consider-using-in, # TODO: Consider merging comparisons with "in"
97
- simplifiable-if-expression, # TODO: Simplify expressions
98
97
too-many-public-methods, # TODO: Resolve
99
98
ungrouped-imports, # TODO: Group imports
100
99
consider-using-ternary, # TODO: Consider ternary expressions
Original file line number Diff line number Diff line change @@ -1292,9 +1292,7 @@ def logs_for_job( # noqa: C901 - suppress complexity warning for this method
1292
1292
client = self .boto_session .client ("logs" , config = config )
1293
1293
log_group = "/aws/sagemaker/TrainingJobs"
1294
1294
1295
- job_already_completed = (
1296
- True if status == "Completed" or status == "Failed" or status == "Stopped" else False
1297
- )
1295
+ job_already_completed = status == "Completed" or status == "Failed" or status == "Stopped"
1298
1296
1299
1297
state = LogState .TAILING if wait and not job_already_completed else LogState .COMPLETE
1300
1298
dot = False
You can’t perform that action at this time.
0 commit comments