Skip to content

Instantly share code, notes, and snippets.

@2tony2
Created May 22, 2024 07:26
Show Gist options
  • Select an option

  • Save 2tony2/6553d38d48d07c8e6309584ead39bbec to your computer and use it in GitHub Desktop.

Select an option

Save 2tony2/6553d38d48d07c8e6309584ead39bbec to your computer and use it in GitHub Desktop.
from typing import Any
def process_item(item: Any) -> None:
print(f"Processing item: {item}")
# Usage examples
process_item(123) # Processing an integer
process_item("Hello") # Processing a string
process_item([1, 2, 3]) # Processing a list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment