Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixops
base: d12bac6b1660
Choose a base ref
...
head repository: NixOS/nixops
compare: 417fdd5cbde3
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Apr 29, 2020

  1. nixops.util.ImmutableValidatedObject: Allow passing an instance of self

    This is useful for plugins or others that want to extend a class.
    
    Consider the following code
    
    ``` python
    from nixops.util import ImmutableValidatedObject
    
    class A(ImmutableValidatedObject):
        x: int
    
    class B(A):
        y: int
    
    a = A(x=1)
    B(a, y=1)  # Type checks both x and y
    ```
    adisbladis committed Apr 29, 2020
    Copy the full SHA
    ff2114e View commit details
    Browse the repository at this point in the history

Commits on May 5, 2020

  1. Merge pull request #1333 from adisbladis/immutable-extensible

    nixops.util.ImmutableValidatedObject: Allow passing an instance of self
    grahamc committed May 5, 2020
    Copy the full SHA
    417fdd5 View commit details
    Browse the repository at this point in the history