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

Testing: Add type annotations to common/types #6701

Merged
merged 4 commits into from
May 30, 2024

Conversation

rdimaio
Copy link
Contributor

@rdimaio rdimaio commented Apr 18, 2024

Part of #6588

This change does not affect the current functioning of the program,
as:
- _calc_external is only used in a context where self.internal exists
  and is a string
- _calc_internal is only used in a context where self.external exists

However, this change prevents typechecking errors once type annotations
are added, because:
- in _calc_external, self.internal.split fails if self.internal is not a
  string
- in _calc_internal, return self.external causes an error if the return
  type annotation is "str", because self.external might be None
@rdimaio
Copy link
Contributor Author

rdimaio commented Apr 26, 2024

Rebased in latest forcepush

@bari12 bari12 merged commit 135695f into rucio:master May 30, 2024
27 checks passed
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

2 participants