Skip to content

Apply type hints to functions.  #163

Closed

Description

@rajeeja
    Small suggestion for the `Grid` constructor, but also applies to most of our other functions: Do we want to implement type hints?

Our current constructor for grid is:
__init__(self, dataset, **kwargs):

A simple change to emphasize that we are using xr.Dataset would be as follows
__init__(self, dataset : xr.Dataset, **kwargs):

Originally posted by @philipc2 in #162 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

new feature

Type

No type

Fields

Priority

None yet

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions