Skip to content

chore(types): add py.typed marker#1093

Merged
benoit-cty merged 1 commit intomlco2:masterfrom
ArmaanjeetSandhu:chore/add-pytyped
Mar 1, 2026
Merged

chore(types): add py.typed marker#1093
benoit-cty merged 1 commit intomlco2:masterfrom
ArmaanjeetSandhu:chore/add-pytyped

Conversation

@ArmaanjeetSandhu
Copy link
Contributor

Adds a PEP 561 py.typed marker file to the package, in reference to #1090

To confirm the marker is present in the installed package, run:

uv run python -c "import codecarbon; import pathlib; p = pathlib.Path(codecarbon.__file__).parent / 'py.typed'; print(p, p.exists())"

@ArmaanjeetSandhu ArmaanjeetSandhu requested a review from a team as a code owner March 1, 2026 11:51
@benoit-cty benoit-cty self-requested a review March 1, 2026 18:01
@codecov
Copy link

codecov bot commented Mar 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.19%. Comparing base (0eee57c) to head (691d5e9).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1093   +/-   ##
=======================================
  Coverage   78.19%   78.19%           
=======================================
  Files          38       38           
  Lines        3636     3636           
=======================================
  Hits         2843     2843           
  Misses        793      793           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@benoit-cty benoit-cty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I did not know about py.typed.

@benoit-cty benoit-cty merged commit 09b9418 into mlco2:master Mar 1, 2026
13 checks passed
@ArmaanjeetSandhu ArmaanjeetSandhu deleted the chore/add-pytyped branch March 1, 2026 18:22
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.

2 participants