I have modified the sample code like below and it was worked
"""jsonplaceholder tap class."""
from future import annotations
from singer_sdk import Tap
from singer_sdk import typing as th # JSON schema typing helpers
# TODO: Import your custom stream types here:
from tap_jsonplaceholder import streams
class Tapjsonplaceholder(Tap):
"""jsonplaceholder tap class."""
name = "tap-jsonplaceholder"
def discover_streams(self) -> list[streams.jsonplaceholderStream]:
"""Return a list of discovered streams.
Returns:
A list of discovered streams.
"""
return [
streams.CommentsStream(self),
streams.UsersStream(self),
]
if name == "__main__":
Tapjsonplaceholder.cli()