Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add a `side_effect` option to data properties.

Open
#237 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
backend

Research direction

The issue names no files, tests, or entry points. First determine where data properties are implemented and how functional properties receive their instance context. Done means defining the callable-based side_effect behavior, resolving the self-binding question, and adding coverage for the requested usage.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.
Data properties are a lot shorter and cleaner to write than functional properties when a property is simple. However, if I need something to happen when the property is set (forwarding it to hardware, re-generating cached data, etc) then a functional property is needed.

Describe the solution you'd like

A side_effect argument that can accept a callable.

frame_rate: float = lt.property(default=25, side_effect=self.update_camera_properties)

I am not sure however, if it is possible to use self here? As it is within a class but not within a classes function where self is defined?

Dominant language
Python
Stars
9
Forks
4
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from labthings/labthings-fastapi

All issues in labthings/labthings-fastapi

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.