Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 598847797
  • Loading branch information
frigus02 authored and LIT team committed Jan 16, 2024
1 parent fb9ffba commit 8122fc9
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lit_nlp/client/core/faceting_control.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/core/global_settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/elements/color_legend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
4 changes: 2 additions & 2 deletions lit_nlp/client/elements/generated_text_vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/elements/interpreter_controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/elements/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/services/classification_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/services/data_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/services/modules_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/services/selection_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/services/slice_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion lit_nlp/client/services/state_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8122fc9

Please sign in to comment.