Skip to content

adds Cells to Smartsheet#122

Merged
smar-kaloyan-gangov merged 1 commit intomainlinefrom
feature/DEVECO-1125-add-cell-to-smartsheet-class
Jan 29, 2026
Merged

adds Cells to Smartsheet#122
smar-kaloyan-gangov merged 1 commit intomainlinefrom
feature/DEVECO-1125-add-cell-to-smartsheet-class

Conversation

@smar-kaloyan-gangov
Copy link
Contributor

@smar-kaloyan-gangov smar-kaloyan-gangov commented Jan 29, 2026

Pull Request

Description

Add Cells class to Smartsheet class for IDE autocomplete support. This change makes the Cells API accessible with proper type hints, enabling code completion in IDEs when accessing smart.Cells methods.

Related Issue

Fixes #121

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Code refactoring
  • Other (please describe):

Environment Information

  • Smartsheet API Version: 2.0
  • Smartsheet Python SDK Version: 3.7.2
  • Python Version: 3.7+

What Changes Were Made

  1. Added from .cells import Cells import in smartsheet/smartsheet.py
  2. Added Cells: Cells type annotation to the Smartsheet class
  3. Updated CHANGELOG.md with the new feature

Why These Changes Were Made

The Cells class was previously only accessible via the dynamic __getattr__ method, which meant IDEs couldn't provide autocomplete for Cells methods like get_cell_history() and add_image_to_cell(). By
adding explicit import and type annotation, developers now get proper IDE support, matching the pattern used for all other API resource classes (Sheets, Attachments, Contacts, etc.).

Testing

  • Ran existing test suite: python -m pytest tests/
  • Ran pylint: pylint smartsheet/smartsheet.py
  • Local test: added the local version to a python project that now I can see the Cell class from the LSP

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have updated the relevant files in docs-source/ (no updates needed - autodoc handles this automatically)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works (no new tests needed - this is a type annotation change)
  • New and existing unit tests pass locally with my changes

Additional Notes

N/A

@roomote
Copy link
Contributor

roomote bot commented Jan 29, 2026

Rooviewer Clock   Follow along on Roo Cloud

Reviewing your PR now. I'll share feedback in a few minutes!

@smar-kaloyan-gangov smar-kaloyan-gangov merged commit 91329d2 into mainline Jan 29, 2026
10 checks passed
@smar-kaloyan-gangov smar-kaloyan-gangov deleted the feature/DEVECO-1125-add-cell-to-smartsheet-class branch January 29, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Cell to Smartsheet class

3 participants