Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make returned data from parse_advertisement_data readonly #25

Merged
merged 4 commits into from
Aug 10, 2023

Conversation

bdraco
Copy link
Member

@bdraco bdraco commented Aug 10, 2023

The cython fields should have been marked as readonly to prevent mistakes. They are also available as a tuple as parse_advertisement_data_tuple for rapid unpacking of many advertisements

@bdraco bdraco changed the title feat: Make returned data from parse_advertisement_data readonly feat: make returned data from parse_advertisement_data readonly Aug 10, 2023
@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.02% 🎉

Comparison is base (2a7ebac) 99.42% compared to head (7c7c81b) 99.45%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   99.42%   99.45%   +0.02%     
==========================================
  Files           3        3              
  Lines         175      182       +7     
  Branches       25       26       +1     
==========================================
+ Hits          174      181       +7     
  Misses          1        1              
Files Changed Coverage Δ
src/bluetooth_data_tools/__init__.py 100.00% <100.00%> (ø)
src/bluetooth_data_tools/gap.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bdraco bdraco force-pushed the readonly branch 2 times, most recently from 946c29b to 2f9997f Compare August 10, 2023 12:49
The cython fields should have been marked as readonly. They
are also available as a tuple as parse_advertisement_data_tuple
for rapid unpacking of many advertisements
@bdraco bdraco marked this pull request as ready for review August 10, 2023 13:23
@bdraco bdraco merged commit 1a07397 into main Aug 10, 2023
19 checks passed
@bdraco bdraco deleted the readonly branch August 10, 2023 13:23
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.

None yet

1 participant