Skip to content

Commit

Permalink
Add type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
sultaniman committed May 14, 2024
1 parent c62bfd0 commit 893c68b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/website/docs/walkthroughs/create-a-pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Below `api_secret_key` [will get its value](../general-usage/credentials/configu

```py
@dlt.source
def githubapi_source(api_secret_key=dlt.secrets.value):
def githubapi_source(api_secret_key: str = dlt.secrets.value):
return githubapi_resource(api_secret_key=api_secret_key)
```

Expand All @@ -90,7 +90,7 @@ from dlt.sources.helpers.rest_client.auth import BearerTokenAuth
from dlt.sources.helpers.rest_client.paginators import HeaderLinkPaginator

@dlt.resource(write_disposition="append")
def githubapi_resource(api_secret_key=dlt.secrets.value):
def githubapi_resource(api_secret_key: str = dlt.secrets.value):
url = "https://api.github.com/repos/dlt-hub/dlt/issues"

for page in paginate(
Expand Down

0 comments on commit 893c68b

Please sign in to comment.