Skip to content

Commit e012c7d

Browse files
fix(timeline-chart): update import statement and add noqa comment for clarity
- Removed unnecessary noqa directive from LoadSaveWidget import in configuration_management_system.py. - Added noqa comment for private member access in timeline.py to address linting concerns. These changes improve code clarity and maintain compliance with linting standards.
1 parent 9d51593 commit e012c7d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

examples/configuration_management_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def create_configuration_widget(
353353

354354
# Import here to avoid issues if anywidget is not available
355355
try:
356-
from numerous.widgets import LoadSaveWidget # noqa: PLC0415
356+
from numerous.widgets import LoadSaveWidget
357357
except ImportError:
358358
logger.warning("LoadSaveWidget not available - this is a demo")
359359
return None

python/src/numerous/widgets/timeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def load_data(cls, filename: str) -> "TimelineChart":
715715
)
716716

717717
# Force a notification to ensure frontend update - need direct access
718-
timeline_chart._notify_trait("blocks", [], timeline_chart.blocks)
718+
timeline_chart._notify_trait("blocks", [], timeline_chart.blocks) # noqa: SLF001
719719
except Exception as e:
720720
raise ValueError(f"Error loading data from HDF5: {e}") from e
721721
else:

0 commit comments

Comments
 (0)