From 8122fc927bdd93d3cdea619114aebcfbf1f3c469 Mon Sep 17 00:00:00 2001 From: Jan Kuehle Date: Tue, 16 Jan 2024 08:22:04 -0800 Subject: [PATCH] Automated Code Change PiperOrigin-RevId: 598847797 --- lit_nlp/client/core/faceting_control.ts | 2 +- lit_nlp/client/core/global_settings.ts | 2 +- lit_nlp/client/elements/color_legend.ts | 2 +- lit_nlp/client/elements/generated_text_vis.ts | 4 ++-- lit_nlp/client/elements/interpreter_controls.ts | 2 +- lit_nlp/client/elements/table.ts | 2 +- lit_nlp/client/services/classification_service.ts | 2 +- lit_nlp/client/services/data_service.ts | 2 +- lit_nlp/client/services/modules_service.ts | 2 +- lit_nlp/client/services/selection_service.ts | 2 +- lit_nlp/client/services/slice_service.ts | 2 +- lit_nlp/client/services/state_service.ts | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lit_nlp/client/core/faceting_control.ts b/lit_nlp/client/core/faceting_control.ts index 7a3d78c1..91dbfd77 100644 --- a/lit_nlp/client/core/faceting_control.ts +++ b/lit_nlp/client/core/faceting_control.ts @@ -29,7 +29,7 @@ import {app} from '../core/app'; import {ReactiveElement} from '../lib/elements'; import {styles as sharedStyles} from '../lib/shared_styles.css'; import {getStepSizeGivenRange} from '../lib/utils'; -import {FacetingConfig, FacetingMethod, GroupService, NumericFeatureBins} from '../services/group_service'; +import {FacetingConfig, FacetingMethod, GroupService, type NumericFeatureBins} from '../services/group_service'; import {styles} from './faceting_control.css'; diff --git a/lit_nlp/client/core/global_settings.ts b/lit_nlp/client/core/global_settings.ts index 1d9d7b10..923d2f23 100644 --- a/lit_nlp/client/core/global_settings.ts +++ b/lit_nlp/client/core/global_settings.ts @@ -36,7 +36,7 @@ import {action, computed, observable} from 'mobx'; import {styles as sharedStyles} from '../lib/shared_styles.css'; import {StringLitType} from '../lib/lit_types'; -import {CallConfig, datasetDisplayName, LitTabGroupLayout, NONE_DS_DICT_KEY, Spec} from '../lib/types'; +import {type CallConfig, datasetDisplayName, LitTabGroupLayout, NONE_DS_DICT_KEY, Spec} from '../lib/types'; import {getTemplateStringFromMarkdown, validateCallConfig} from '../lib/utils'; import {LitInputField} from '../elements/lit_input_field'; import {resolveModuleConfig} from '../services/modules_service'; diff --git a/lit_nlp/client/elements/color_legend.ts b/lit_nlp/client/elements/color_legend.ts index 9e8f972e..9c48beca 100644 --- a/lit_nlp/client/elements/color_legend.ts +++ b/lit_nlp/client/elements/color_legend.ts @@ -28,7 +28,7 @@ import {computed, observable} from 'mobx'; import {DEFAULT} from '../lib/colors'; import {ReactiveElement} from '../lib/elements'; import {styles as sharedStyles} from '../lib/shared_styles.css'; -import {D3Scale} from '../lib/types'; +import {type D3Scale} from '../lib/types'; import {getTextWidth, linearSpace} from '../lib/utils'; import {styles} from './color_legend.css'; diff --git a/lit_nlp/client/elements/generated_text_vis.ts b/lit_nlp/client/elements/generated_text_vis.ts index 6f79ffb4..23dbdea3 100644 --- a/lit_nlp/client/elements/generated_text_vis.ts +++ b/lit_nlp/client/elements/generated_text_vis.ts @@ -22,9 +22,9 @@ import {classMap} from 'lit/directives/class-map.js'; import {computed, observable} from 'mobx'; import {ReactiveElement} from '../lib/elements'; -import {DiffMode, getTextDiff, TextDiff} from '../lib/generated_text_utils'; +import {DiffMode, getTextDiff, type TextDiff} from '../lib/generated_text_utils'; import {styles as sharedStyles} from '../lib/shared_styles.css'; -import {ScoredTextCandidates} from '../lib/dtypes'; +import {type ScoredTextCandidates} from '../lib/dtypes'; import {styles} from './generated_text_vis.css'; diff --git a/lit_nlp/client/elements/interpreter_controls.ts b/lit_nlp/client/elements/interpreter_controls.ts index 8a548b18..c3b4e110 100644 --- a/lit_nlp/client/elements/interpreter_controls.ts +++ b/lit_nlp/client/elements/interpreter_controls.ts @@ -26,7 +26,7 @@ import {computed, observable} from 'mobx'; import {ReactiveElement} from '../lib/elements'; import {BooleanLitType, CategoryLabel, LitType, LitTypeWithVocab, MultiFieldMatcher, Scalar, SingleFieldMatcher, SparseMultilabel, Tokens} from '../lib/lit_types'; import {styles as sharedStyles} from '../lib/shared_styles.css'; -import {Spec} from '../lib/types'; +import {type Spec} from '../lib/types'; import {getTemplateStringFromMarkdown} from '../lib/utils'; import {styles} from './interpreter_controls.css'; diff --git a/lit_nlp/client/elements/table.ts b/lit_nlp/client/elements/table.ts index b63071d9..2645b472 100644 --- a/lit_nlp/client/elements/table.ts +++ b/lit_nlp/client/elements/table.ts @@ -53,7 +53,7 @@ export type TemplateResultFn = TemplateResult; /** Export types from ./table_types. */ -export {ColumnHeader, SortableTableEntry, SortableTemplateResult, TableData, TableEntry, TableRowInternal}; +export {type ColumnHeader, type SortableTableEntry, type SortableTemplateResult, type TableData, type TableEntry, type TableRowInternal}; /** Callback for selection */ export type OnSelectCallback = (selectedIndices: number[]) => void; diff --git a/lit_nlp/client/services/classification_service.ts b/lit_nlp/client/services/classification_service.ts index 438295be..6c28a761 100644 --- a/lit_nlp/client/services/classification_service.ts +++ b/lit_nlp/client/services/classification_service.ts @@ -19,7 +19,7 @@ import {action, computed, observable, reaction} from 'mobx'; import {MulticlassPreds} from '../lib/lit_types'; -import {FacetedData, GroupedExamples, SpecMap} from '../lib/types'; +import {type FacetedData, type GroupedExamples, type SpecMap} from '../lib/types'; import {getMarginFromThreshold} from '../lib/utils'; import {LitService} from './lit_service'; diff --git a/lit_nlp/client/services/data_service.ts b/lit_nlp/client/services/data_service.ts index 8b59100c..114fae3d 100644 --- a/lit_nlp/client/services/data_service.ts +++ b/lit_nlp/client/services/data_service.ts @@ -18,7 +18,7 @@ // tslint:disable:no-new-decorators import {action, computed, observable, reaction} from 'mobx'; -import {BINARY_NEG_POS, ColorRange} from '../lib/colors'; +import {BINARY_NEG_POS, type ColorRange} from '../lib/colors'; import {BooleanLitType, CategoryLabel, GeneratedText, GeneratedTextCandidates, LitType, MulticlassPreds, RegressionScore, Scalar, SparseMultilabelPreds} from '../lib/lit_types'; import {ClassificationResults, IndexedInput, RegressionResults} from '../lib/types'; import {createLitType, findSpecKeys, isLitSubtype, mapsContainSame} from '../lib/utils'; diff --git a/lit_nlp/client/services/modules_service.ts b/lit_nlp/client/services/modules_service.ts index 618feba4..6cdbc22b 100644 --- a/lit_nlp/client/services/modules_service.ts +++ b/lit_nlp/client/services/modules_service.ts @@ -18,7 +18,7 @@ // tslint:disable:no-new-decorators import {action, observable} from 'mobx'; -import {LayoutSettings, LitCanonicalLayout, LitComponentSpecifier, LitModuleClass, LitModuleConfig, LitTabGroupLayout, ModelInfoMap, ResolvedModuleConfig, Spec} from '../lib/types'; +import {LayoutSettings, type LitCanonicalLayout, LitComponentSpecifier, LitModuleClass, LitModuleConfig, LitTabGroupLayout, type ModelInfoMap, ResolvedModuleConfig, type Spec} from '../lib/types'; import {LitService} from './lit_service'; import {ModulesObservedByUrlService, UrlConfiguration} from './url_service'; diff --git a/lit_nlp/client/services/selection_service.ts b/lit_nlp/client/services/selection_service.ts index db3163a2..91ae92db 100644 --- a/lit_nlp/client/services/selection_service.ts +++ b/lit_nlp/client/services/selection_service.ts @@ -18,7 +18,7 @@ // tslint:disable:no-new-decorators import {action, computed, observable} from 'mobx'; -import {IndexedInput, ServiceUser} from '../lib/types'; +import {type IndexedInput, type ServiceUser} from '../lib/types'; import {LitService} from './lit_service'; import {SelectionObservedByUrlService} from './url_service'; diff --git a/lit_nlp/client/services/slice_service.ts b/lit_nlp/client/services/slice_service.ts index f97babeb..7c3fb200 100644 --- a/lit_nlp/client/services/slice_service.ts +++ b/lit_nlp/client/services/slice_service.ts @@ -18,7 +18,7 @@ // tslint:disable:no-new-decorators import {action, computed, observable, reaction} from 'mobx'; -import {IndexedInput, ServiceUser} from '../lib/types'; +import {IndexedInput, type ServiceUser} from '../lib/types'; import {arrayContainsSame} from '../lib/utils'; import {LitService} from './lit_service'; diff --git a/lit_nlp/client/services/state_service.ts b/lit_nlp/client/services/state_service.ts index e721247d..ee55daa3 100644 --- a/lit_nlp/client/services/state_service.ts +++ b/lit_nlp/client/services/state_service.ts @@ -19,7 +19,7 @@ import {action, computed, observable, toJS} from 'mobx'; import {FieldMatcher, ImageBytes} from '../lib/lit_types'; -import {defaultValueByField, IndexedInput, Input, LitCanonicalLayout, LitComponentLayouts, LitMetadata, ModelInfo, ModelInfoMap, ModelSpec, NONE_DS_DICT_KEY, Spec} from '../lib/types'; +import {defaultValueByField, IndexedInput, Input, type LitCanonicalLayout, type LitComponentLayouts, type LitMetadata, ModelInfo, type ModelInfoMap, ModelSpec, NONE_DS_DICT_KEY, type Spec} from '../lib/types'; import {findSpecKeys, getTypes} from '../lib/utils'; import {ApiService} from './api_service';