Skip to content

Conversation

@iLLiCiTiT
Copy link
Member

Changelog Description

Added typehints to most of ServerAPI functions and in public api functions.

Additional review information

It is a lot of changes, I've discovered multiple unexpected behaviors in the code, different order od arguments in some getter, different return output for create methods, those will come in future PRs.

I didn't fill typehints to some deprecated arguments. I've tried my best, hopefully all necessary is filled.

Testing notes:

  1. Go through the changes in code.
  2. It is possible to use any of the functions.
  3. Tests should pass ok.

@iLLiCiTiT iLLiCiTiT self-assigned this Dec 6, 2024
@iLLiCiTiT iLLiCiTiT requested review from antirotor and kalisp December 6, 2024 11:05
@iLLiCiTiT iLLiCiTiT added the type: enhancement New feature or request label Dec 6, 2024
Copy link
Member

@kalisp kalisp left a comment

Choose a reason for hiding this comment

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

Looks good. Doesn't break anything.

@iLLiCiTiT iLLiCiTiT merged commit 093ec6e into develop Dec 11, 2024
2 checks passed
@iLLiCiTiT iLLiCiTiT deleted the enhancement/175-type-hints-in-serverapi-and-global-api branch December 11, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants