Skip to content

Commit

Permalink
fix: python code formatting in Custom Extractor docs (meltano#7745)
Browse files Browse the repository at this point in the history
fix python code formatting
  • Loading branch information
rawwar committed Jun 5, 2023
1 parent 1e8fd4e commit 12c3145
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions docs/src/_tutorials/custom-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,37 +153,23 @@ from typing import List

from singer_sdk import Tap, Stream

from singer_sdk import typing as th # JSON schema typing helpers
from singer_sdk import typing as th # JSON schema typing helpers

from tap_jsonplaceholder.streams import (
from tap_jsonplaceholder.streams import jsonplaceholderStream, CommentsStream

jsonplaceholderStream,

CommentsStream

)


STREAM_TYPES = [

CommentsStream

]
STREAM_TYPES = [CommentsStream]


class Tapjsonplaceholder(Tap):
"""jsonplaceholder tap class."""

"""jsonplaceholder tap class."""

name = "tap-jsonplaceholder"



def discover_streams(self) -> List[Stream]:
name = "tap-jsonplaceholder"

"""Return a list of discovered streams."""
def discover_streams(self) -> List[Stream]:
"""Return a list of discovered streams."""

return [stream_class(tap=self) for stream_class in STREAM_TYPES]
return [stream_class(tap=self) for stream_class in STREAM_TYPES]

```

Expand Down

0 comments on commit 12c3145

Please sign in to comment.