HomePhabricator

[core] add context to type_checks

Authored by alangenfeld on Feb 11 2020, 5:48 PM.

Description

[core] add context to type_checks

Summary:
This diff makes context available to type_checks in a non-breaking way.

  • uses get_args to determine whether to pass through context - enforce 1 arg or 2 args with context first rules.
  • adds a TypeCheckContext that is created for type checks.
  • adds required_resource_keys to DagsterType

Test Plan: added tests

Reviewers: max, schrockn, prha

Reviewed By: schrockn, prha

Differential Revision: https://dagster.phacility.com/D1768

Details

Committed
alangenfeldFeb 12 2020, 12:47 AM
Reviewer
schrockn
Differential Revision
D1768: [core] add context to type_checks
Parents
R1:0ad10a0c6bb4: Move concepts and demos under learn
Branches
Unknown
Tags
Unknown