google / google/grain

Feature: Define transforms via Protocol instead of abstract class

Open
#884 2 comments 0 reactions 0 assignees View on GitHub
type:feature
Dominant language
Python
Stars
779
Forks
86
Avg merge
2d 6h
Merged PRs (30d)
6

Description

`MapTransform` and others are currently implemented as `abc.ABC`. As a result, once one implements transforms for grain, one has to import grain. But I'd like to define transforms that I might use with a different tool. A `Protocol` would allow this flexibility.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.