Skip to content

Instantly share code, notes, and snippets.

@laundmo

laundmo/test.py Secret

Last active January 24, 2021 02:46
Show Gist options
  • Save laundmo/55e4799cb446ae5c3535eca6d6a26102 to your computer and use it in GitHub Desktop.
Save laundmo/55e4799cb446ae5c3535eca6d6a26102 to your computer and use it in GitHub Desktop.
This is a example Gist for OctoLinker python support.
# for some reason every second one here fails
import re
import re
import re
import logging
import logging
import logging
import asyncio
import json
import math
import functools
# nothing when importing from a subpackage
from discord.ext import commands
# or a sub sub package
from discord.ext.commands import Cog, Context, command
# this links the wrong occurence of datetime, it should link the package name datetime, not the class datetime thats imported from that package
from datetime import datetime, timedelta
#other way around works
from datetime import timedelta, datetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment