Skip to content

Conversation

@QianBao8902
Copy link
Collaborator

@QianBao8902 QianBao8902 commented May 20, 2021

Errors in mypy:

tensorbay/client/dataset.py|708 col 29 error
Incompatible types in assignment(expression has type "float",
variable has type "Optional[int]")[assignment]

tensorbay/client/dataset.py|709 col 41 error
Argument 1 to "get" of "Mapping" has incompatible type "Optional[int]";
expected "float"[arg-type]

@linjiX linjiX requested a review from Lee-000 May 20, 2021 08:08
@coveralls
Copy link

coveralls commented May 20, 2021

Pull Request Test Coverage Report for Build 860331268

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 80.811%

Totals Coverage Status
Change from base Build 860199358: 0.0%
Covered Lines: 4245
Relevant Lines: 5253

💛 - Coveralls

@staticmethod
def _skip_upload_frame(
segment_filter: Iterator[Tuple[Frame, Optional[int], bool]],
segment_filter: Iterator[Tuple[Frame, Optional[float], bool]],
Copy link
Contributor

Choose a reason for hiding this comment

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

better to paste the mypy error detail in commit message body

Copy link
Contributor

Choose a reason for hiding this comment

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

  • Put the error detail into code block in commit message body
  • error -> errors in commit message

@Lee-000 Lee-000 self-requested a review May 20, 2021 08:13
@staticmethod
def _skip_upload_frame(
segment_filter: Iterator[Tuple[Frame, Optional[int], bool]],
segment_filter: Iterator[Tuple[Frame, Optional[float], bool]],
Copy link
Contributor

Choose a reason for hiding this comment

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

  • Put the error detail into code block in commit message body
  • error -> errors in commit message

@QianBao8902 QianBao8902 force-pushed the T15529_timestamp branch 5 times, most recently from ef90847 to f5c97f0 Compare May 20, 2021 09:17
@QianBao8902 QianBao8902 changed the title style(client): fix mypy error in FusionDatasetClient._skip_upload_frame style(client): fix mypy errors in FusionDatasetClient._skip_upload_frame May 20, 2021
@Lee-000 Lee-000 requested a review from linjiX May 20, 2021 09:18
Errors in mypy:
```
tensorbay/client/dataset.py|708 col 29 error
Incompatible types in assignment(expression has type "float",
variable has type "Optional[int]")[assignment]

tensorbay/client/dataset.py|709 col 41 error
Argument 1 to "get" of "Mapping" has incompatible type "Optional[int]";
expected "float"[arg-type]
```

PR Closed: Graviti-AI#590
@QianBao8902 QianBao8902 merged commit 2218489 into Graviti-AI:main May 20, 2021
@QianBao8902 QianBao8902 deleted the T15529_timestamp branch May 20, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants