summaryrefslogtreecommitdiff
path: root/numpy/random/bit_generator.pyi
Commit message (Collapse)AuthorAgeFilesLines
* API: Add `rng.spawn()`, `bit_gen.spawn()`, and `bit_gen.seed_seq`Sebastian Berg2023-02-141-0/+3
| | | | | | | | | | | | | | | | | | | This makes the seed sequence interface more public facing by: 1. Adding `BitGenerator.seed_seq` to give clear access to `_seed_seq` 2. Add `spawn()` to both the generator and the bit generator as convenience methods for spawning new instances. I somewhat remember that we always meant to consider making this more public and adding such convenient methods, but did not do so originally. So, now, I do wonder whether it is time to make this fully public? It would be nice to follow up at some point with a bit of best practices. This also doesn't add it to the `RandomState`, although doing it via `RandomState._bit_generator` is of course valid. Can we define as this kind of access as stable enough that downstream libraries could use it? I fear that backcompat with `RandomState` might make adopting newer things like spawning hard for libraries?
* MAINT: Split `numpy.typing` into a public and private componentBas van Beek2022-03-181-1/+1
| | | | i.e. `numpy.typing` and `numpy._typing`
* STY: Use subscriptable `collections.abc` types over the generic aliases in …Bas van Beek2021-12-231-3/+1
|
* STY: Use subscriptable `builtins` types over the generic aliases in `typing`Bas van Beek2021-12-231-14/+10
|
* STY: Replace `Union` with the `|` operatorBas van Beek2021-12-221-10/+10
|
* STY: Replace `Optional` with the `|` operatorBas van Beek2021-12-221-2/+1
|
* MAINT: Drop .pyi code-paths specific to Python 3.7Bas van Beek2021-08-301-6/+1
|
* Small fixesKevin Sheppard2021-02-241-1/+1
|
* ENH/BUG: Add tests and correct typing issuesKevin Sheppard2021-02-241-24/+21
| | | | | | | Add tests for lower level components Correct errors found in testing Improve specificity of tests Other small fixes to docs and typing
* ENH: Fix typingKevin Sheppard2021-02-151-2/+2
| | | | Correct specific typing and general typing
* ENH: Update typingKevin Sheppard2021-02-151-2/+10
| | | | Update with latest suggestions
* ENH: Update with TypedDictKevin Sheppard2021-02-131-2/+3
| | | | Update using TypedDict for state
* ENH: Add typing for GeneratorKevin Sheppard2021-02-131-1/+1
|
* ENH: Add typing for MT19937 and PhiloxKevin Sheppard2021-02-131-24/+13
| | | | | Add typing for remaining core bit generators Clean up remaining files
* ENH: Add typing for PCG64 and SFC64Kevin Sheppard2021-02-131-16/+53
| | | | Add initial typing for select bit generators
* MAINT: Improve typing of BitGeneratorKevin Sheppard2021-02-131-18/+46
| | | | | Fix initial bugs Add _Interface named tuple
* ENH: Initial typing of randomKevin Sheppard2021-02-131-0/+61
Add typing to the lowest-level building blocks on random