Skip to content

Commit

Permalink
[docs] chore: remove repetitive words (#21514)
Browse files Browse the repository at this point in the history
## Summary & Motivation

 remove repetitive words

## How I Tested These Changes
  • Loading branch information
tianzedavid authored Oct 1, 2024
1 parent 6e75bbc commit 3050a17
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/content/tutorial/building-an-asset-graph.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Reload the definitions and re-materialize your assets. The metadata can then be

The DataFrame was embedded into the asset's metadata with Markdown. Any valid Markdown snippet can be stored and rendered in the Dagster UI, including images. By embedding a bar chart of the most frequently used words as metadata, you and your team can visualize and analyze the `most_frequent_words` asset without leaving the Dagster UI.

Below is code that changes shows how to add an an image of a bar chart in asset metadata. Replace your `most_frequent_words` asset with the following:
Below is code that changes shows how to add an image of a bar chart in asset metadata. Replace your `most_frequent_words` asset with the following:

```python file=/tutorial/building_an_asset_graph/assets_with_metadata.py startafter=start_most_frequent_words_asset_with_metadata endbefore=end_most_frequent_words_asset_with_metadata
@asset(deps=[topstories])
Expand Down
2 changes: 1 addition & 1 deletion python_modules/dagster/dagster/_config/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def validate_selector_config(
if config_value == {}:
return _validate_empty_selector_config(context)

# Now we ensure that the used-provided config has only a a single entry
# Now we ensure that the used-provided config has only a single entry
# and then continue the validation pass

if not isinstance(config_value, dict):
Expand Down
2 changes: 1 addition & 1 deletion python_modules/dagster/dagster/_serdes/serdes.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def whitelist_for_serdes(
deserialization will be handled by the `Foo` serializer.
old_storage_names (Optional[AbstractSet[str]]):
A set of strings that act as aliases for the target class when deserializing. For example,
if `OldFoo` is is passed as an old storage name for `Foo`, then dicts encountered with
if `OldFoo` is passed as an old storage name for `Foo`, then dicts encountered with
`"__class__": "OldFoo"` during deserialization will be handled by the `Foo` serializer.
storage_field_names (Optional[Mapping[str, str]]):
A mapping of field names to the names used during serializing and deserializing. For
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,21 @@ def _migration_regex(warning, current_revision, expected_revision=None):

def _run_storage_migration_regex(current_revision, expected_revision=None):
warning = re.escape(
"Raised an exception that may indicate that the Dagster database needs to be be migrated."
"Raised an exception that may indicate that the Dagster database needs to be migrated."
)
return _migration_regex(warning, current_revision, expected_revision)


def _schedule_storage_migration_regex(current_revision, expected_revision=None):
warning = re.escape(
"Raised an exception that may indicate that the Dagster database needs to be be migrated."
"Raised an exception that may indicate that the Dagster database needs to be migrated."
)
return _migration_regex(warning, current_revision, expected_revision)


def _event_log_migration_regex(_run_id, current_revision, expected_revision=None):
warning = re.escape(
"Raised an exception that may indicate that the Dagster database needs to be be migrated."
"Raised an exception that may indicate that the Dagster database needs to be migrated."
)
return _migration_regex(warning, current_revision, expected_revision)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def _reconstruct_from_file(hostname, conn_string, path, username="test", passwor

def _migration_regex(current_revision, expected_revision=None):
warning = re.escape(
"Raised an exception that may indicate that the Dagster database needs to be be migrated."
"Raised an exception that may indicate that the Dagster database needs to be migrated."
)

if expected_revision:
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def check_schema_compat(schema):


def validate_column(column: Column):
"""This function is used to validate individual DB columns in a a schema for cross-DBAPI compatibility.
"""This function is used to validate individual DB columns in a schema for cross-DBAPI compatibility.
i.e.:
1. plain db.String not allowed (MySQL compatability)
Expand Down

1 comment on commit 3050a17

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for dagster-docs ready!

✅ Preview
https://dagster-docs-a5etpk4gw-elementl.vercel.app
https://master.dagster.dagster-docs.io

Built with commit 3050a17.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.