Skip to content

Instantly share code, notes, and snippets.

View bryanforbes's full-sized avatar

Bryan Forbes bryanforbes

View GitHub Profile
@bryanforbes
bryanforbes / __init__.pyi
Created April 5, 2020 19:49
Reproduction for mypy 8481
from .user import User as User, ClientUser as ClientUser
from .channel import *
from .message import Message as Message
from . import abc

Keybase proof

I hereby claim:

  • I am bryanforbes on github.
  • I am bryanforbes (https://keybase.io/bryanforbes) on keybase.
  • I have a public key ASCW5FzcK3rMcZwjVYscQO_o43x4bZ-iZ8PGs9YhCfhpzQo

To claim this, I am signing this object:

[tool.poetry]
name = "test"
version = "0.1.0"
description = ""
authors = ["Bryan Forbes"]
license = "BSD-3-Clause"
[tool.poetry.dependencies]
python = "^3.7"
"discord.py" = {git = "https://github.com/Rapptz/discord.py.git",rev = "860d6a9ace8248dfeec18b8b159e7b757d9f56bb",extras = ["voice"]}
@bryanforbes
bryanforbes / README.md
Last active April 26, 2016 21:18
Angular2 + Typescript Demo Plunk

Angular2 Starter Plunker - Typescript - Beta 0

A simple plunker demonstrating Angular2 usage:

  • Uses SystemJS + TypeScript to compile on the fly
  • Includes binding, directives, http, pipes, and DI usage.
@bryanforbes
bryanforbes / README.md
Created April 26, 2016 19:51
Angular2 + Typescript Demo Plunk

Angular2 Starter Plunker - Typescript - Beta 0

A simple plunker demonstrating Angular2 usage:

  • Uses SystemJS + TypeScript to compile on the fly
  • Includes binding, directives, http, pipes, and DI usage.
// ambient module definition
declare module 'dojo-core/Promise' {
// interface definition
export interface Executor<T> {
(resolve: (value?: T | Thenable<T>) => void, reject: (reason?: any) => void): void;
}
// function definition
export function isThenable(value: any): boolean;
define(function (require) {
var B = require('./B');
return function () {
B();
};
});
import intern = require('intern');
import echo = require('intern/dojo/has!host-node?./services/echo');
let server: any;
if (echo && intern.mode === 'runner') {
echo.start().then(function (_server: any) {
server = _server;
});
}

Keybase proof

I hereby claim:

  • I am bryanforbes on github.
  • I am bryanforbes (https://keybase.io/bryanforbes) on keybase.
  • I have a public key whose fingerprint is 3D7D B728 713A BB7B B8B1 5B61 3888 17E0 70CA 0F3D

To claim this, I am signing this object:

import { hasClass } from './decorators';
import global from './global';
module Native {
interface NativeWeakMap<K, V> {
delete(key: K): boolean;
get(key: K): V;
has(key: K): boolean;
set(key: K, value?: V): NativeWeakMap<K, V>;
}