Skip to content

fix: update to fix minor and low priority issues#14

Merged
privateip merged 1 commit intoitential:mainfrom
privateip:minor-issues
Mar 9, 2026
Merged

fix: update to fix minor and low priority issues#14
privateip merged 1 commit intoitential:mainfrom
privateip:minor-issues

Conversation

@privateip
Copy link
Copy Markdown
Contributor

  • Add return types and parameter annotations to Client.init, aenter, aexit, and ServiceBase.init to fulfil the Typing :: Typed classifier
  • Pin ipsdk to >=0.3.0 to prevent silent breakage from upstream changes
  • Declare PyYAML as an optional dependency under the [yaml] extra so it is explicitly installable rather than requiring a manual uv add
  • Replace sys.exit(1) with raise SystemExit(1) in fatal() so the library never forcibly terminates the calling process
  • Replace bare print() calls in main.py with sys.stdout.write() ahead of any future CLI work
  • Update TestFatalFunction tests to assert SystemExit is raised and verify the exit code rather than mocking sys.exit

- Add return types and parameter annotations to Client.__init__, __aenter__,
  __aexit__, and ServiceBase.__init__ to fulfil the Typing :: Typed classifier
- Pin ipsdk to >=0.3.0 to prevent silent breakage from upstream changes
- Declare PyYAML as an optional dependency under the [yaml] extra so it is
  explicitly installable rather than requiring a manual uv add
- Replace sys.exit(1) with raise SystemExit(1) in fatal() so the library
  never forcibly terminates the calling process
- Replace bare print() calls in __main__.py with sys.stdout.write() ahead of
  any future CLI work
- Update TestFatalFunction tests to assert SystemExit is raised and verify
  the exit code rather than mocking sys.exit
@privateip privateip requested a review from a team as a code owner March 9, 2026 11:30
@privateip privateip merged commit d77a135 into itential:main Mar 9, 2026
8 checks passed
@privateip privateip deleted the minor-issues branch March 9, 2026 11:41
@privateip privateip mentioned this pull request Mar 9, 2026
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.

1 participant