Skip to content

Add py.typed#543

Merged
ogenstad merged 2 commits intoinfrahub-developfrom
pog-py.typed
Feb 18, 2026
Merged

Add py.typed#543
ogenstad merged 2 commits intoinfrahub-developfrom
pog-py.typed

Conversation

@ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Sep 10, 2025

Create a branch where we have a py.typed file, this will currently cause issues within the Infrahub repo that should preferably be fixed before we merge this.

Also adds a newsfragment mentioning typing issues and the reasoning for including this file now.

Bumps the version of the SDK to 1.19.0b0 in order to create a beta release for the upcoming Infrahub 1.8.

Summary by CodeRabbit

  • Chores
    • Version updated to 1.19.0b0
    • Enhanced type checking support to enable full type safety when using the SDK as an imported package

@coderabbitai
Copy link

coderabbitai bot commented Sep 10, 2025

No actionable comments were generated in the recent review. 🎉


Walkthrough

This pull request adds a py.typed file to the project root and bumps the version from 1.18.1 to 1.19.0b0. The py.typed file enables PEP 561 type checking compliance, signaling that the Infrahub SDK package includes type annotations. This change allows external projects importing the SDK to perform type checking against its typed interfaces. The version bump reflects the addition of this new feature in preparation for the next release.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Add py.typed' directly and specifically matches the main purpose of the pull request, which is to add a py.typed file to enable PEP 561 type checking.
Description check ✅ Passed The description explains the purpose (add py.typed for PEP 561), notes about potential typing issues, mentions the changelog entry, and explains the version bump rationale for a beta release.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 10, 2025

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 809ea5e
Status: ✅  Deploy successful!
Preview URL: https://533b3a7a.infrahub-sdk-python.pages.dev
Branch Preview URL: https://pog-py-typed.infrahub-sdk-python.pages.dev

View logs

@dpeachey
Copy link

This would be very nice 👍🏻

@ogenstad ogenstad changed the base branch from develop to infrahub-develop January 21, 2026 13:38
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                 Coverage Diff                  @@
##           infrahub-develop     #543      +/-   ##
====================================================
- Coverage             81.76%   80.59%   -1.17%     
====================================================
  Files                   118      118              
  Lines                 11955    10235    -1720     
  Branches               2060     1538     -522     
====================================================
- Hits                   9775     8249    -1526     
+ Misses                 1549     1456      -93     
+ Partials                631      530     -101     
Flag Coverage Δ
integration-tests 40.39% <ø> (-2.68%) ⬇️
python-3.10 51.81% <ø> (-2.60%) ⬇️
python-3.11 51.81% <ø> (-2.60%) ⬇️
python-3.12 51.79% <ø> (-2.61%) ⬇️
python-3.13 51.79% <ø> (-2.62%) ⬇️
python-3.14 53.50% <ø> (-3.01%) ⬇️
python-filler-3.12 23.97% <ø> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ogenstad ogenstad marked this pull request as ready for review February 18, 2026 13:06
@ogenstad ogenstad requested a review from a team as a code owner February 18, 2026 13:06
@ogenstad ogenstad merged commit f84bbd2 into infrahub-develop Feb 18, 2026
22 checks passed
@ogenstad ogenstad deleted the pog-py.typed branch February 18, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants