Skip to content

fix: resolve dead code, type inconsistency, PEP 8, and logging format…#1518

Open
overhyped-pratham wants to merge 1 commit into
SolaceLabs:mainfrom
overhyped-pratham:fix/misc-bugs-and-code-quality
Open

fix: resolve dead code, type inconsistency, PEP 8, and logging format…#1518
overhyped-pratham wants to merge 1 commit into
SolaceLabs:mainfrom
overhyped-pratham:fix/misc-bugs-and-code-quality

Conversation

@overhyped-pratham
Copy link
Copy Markdown

… issues

  • in_memory_cache.py: Fix delete() return type annotation (was None, returns bool)

  • in_memory_cache.py: Remove unreachable
    eturn False in clear() method

  • base_registry.py: Fix mixed int/str type for time_since_last_seen in remove()

  • observability.py: Add missing PEP 8 blank lines between class definitions

  • message_utils.py: Use lazy %s logging format instead of eager f-strings

  • artifact_utils.py: Use lazy %s logging format instead of eager f-strings

What is the purpose of this change?

Brief summary - what problem does this solve?

How was this change implemented?

High-level approach - what files/components changed and why?

Key Design Decisions (optional - delete if not applicable)

Why did you choose this approach over alternatives?

How was this change tested?

  • Manual testing: [describe scenarios]
  • Unit tests: [new/modified tests]
  • Integration tests: [if applicable]
  • Known limitations: [what wasn't tested]

Is there anything the reviewers should focus on/be aware of?

Special attention areas, potential risks, or open questions

… issues

- in_memory_cache.py: Fix delete() return type annotation (was None, returns bool)

- in_memory_cache.py: Remove unreachable 
eturn False in clear() method

- base_registry.py: Fix mixed int/str type for time_since_last_seen in remove()

- observability.py: Add missing PEP 8 blank lines between class definitions

- message_utils.py: Use lazy %s logging format instead of eager f-strings

- artifact_utils.py: Use lazy %s logging format instead of eager f-strings

Signed-off-by: overhyped-pratham <[email protected]>
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