This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove Github force push actions | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-09 | |
// @description Remove Github force push actions | |
// @author You | |
// @match https://github.com/*/*/pull/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import dataclass, field, InitVar | |
@dataclass | |
class A: | |
_x: int = field(init=False) | |
x: InitVar[int] | |
def __post_init__(self, x: int) -> None: | |
self.x = x |