Skip to content

Conversation

igorsugak
Copy link
Contributor

Differential Revision: D64008689

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Oct 18, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64008689

igorsugak added a commit to igorsugak/opacus that referenced this pull request Oct 18, 2024
igorsugak added a commit to igorsugak/opacus that referenced this pull request Oct 18, 2024
igorsugak added a commit to igorsugak/captum that referenced this pull request Oct 18, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64008689

igorsugak added a commit to igorsugak/audio that referenced this pull request Oct 18, 2024
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.98%. Comparing base (d2c6f5e) to head (a3907e9).
Report is 42 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2584   +/-   ##
=======================================
  Coverage   99.98%   99.98%           
=======================================
  Files         196      196           
  Lines       17333    17340    +7     
=======================================
+ Hits        17331    17338    +7     
  Misses          2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

igorsugak added a commit to igorsugak/audio that referenced this pull request Oct 18, 2024
…ch#3845)

Summary:
X-link: meta-pytorch/opacus#680
X-link: meta-pytorch/captum#1387
X-link: meta-pytorch/botorch#2584

This replaces uses of `numpy.ndarray` in type annotations with `numpy.typing.NDArray`. In Numpy-1.24.0+ `numpy.ndarray` is annotated as generic type. Without template parameters it triggers static analysis errors: 
```counterexample
Generic type `ndarray` expects 2 type parameters.
```
`numpy.typing.NDArray` is an alias that provides default template parameters.

Differential Revision: D64619891
igorsugak added a commit to igorsugak/botorch that referenced this pull request Oct 18, 2024
Summary:
X-link: pytorch/audio#3846

X-link: meta-pytorch/opacus#680
X-link: meta-pytorch/captum#1387
X-link: pytorch/audio#3845

This replaces uses of `numpy.ndarray` in type annotations with `numpy.typing.NDArray`. In Numpy-1.24.0+ `numpy.ndarray` is annotated as generic type. Without template parameters it triggers static analysis errors: 
```counterexample
Generic type `ndarray` expects 2 type parameters.
```
`numpy.typing.NDArray` is an alias that provides default template parameters.

Differential Revision: D64619891
igorsugak added a commit to igorsugak/captum that referenced this pull request Oct 18, 2024
Summary:
X-link: pytorch/audio#3846

X-link: meta-pytorch/opacus#680
X-link: meta-pytorch/botorch#2584
X-link: pytorch/audio#3845

This replaces uses of `numpy.ndarray` in type annotations with `numpy.typing.NDArray`. In Numpy-1.24.0+ `numpy.ndarray` is annotated as generic type. Without template parameters it triggers static analysis errors: 
```counterexample
Generic type `ndarray` expects 2 type parameters.
```
`numpy.typing.NDArray` is an alias that provides default template parameters.

Differential Revision: D64619891
igorsugak added a commit to igorsugak/opacus that referenced this pull request Oct 18, 2024
Summary:
X-link: meta-pytorch/captum#1389

X-link: meta-pytorch/botorch#2586

X-link: pytorch/audio#3846

X-link: meta-pytorch/captum#1387
X-link: meta-pytorch/botorch#2584
X-link: pytorch/audio#3845

This replaces uses of `numpy.ndarray` in type annotations with `numpy.typing.NDArray`. In Numpy-1.24.0+ `numpy.ndarray` is annotated as generic type. Without template parameters it triggers static analysis errors: 
```counterexample
Generic type `ndarray` expects 2 type parameters.
```
`numpy.typing.NDArray` is an alias that provides default template parameters.

Differential Revision: D64619891
@saitcakmak
Copy link
Contributor

merged as #2586

@saitcakmak saitcakmak closed this Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants