Skip to content

Commit

Permalink
🔀 Merge pull request #311
Browse files Browse the repository at this point in the history
Pre Release 2.0.0a13.post1
  • Loading branch information
yanyongyu committed Apr 1, 2021
2 parents b09a751 + 0fd82d4 commit 916d620
Show file tree
Hide file tree
Showing 51 changed files with 9 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/.vuepress/versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
"2.0.0a13",
"2.0.0a13.post1",
"2.0.0a10",
"2.0.0a8.post2",
"2.0.0a7"
Expand Down
3 changes: 2 additions & 1 deletion nonebot/adapters/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
import asyncio
from copy import copy
from functools import reduce, partial
from typing_extensions import Protocol
from dataclasses import dataclass, field
from typing import (Any, Set, Dict, Union, TypeVar, Mapping, Optional, Iterable,
Protocol, Awaitable, TYPE_CHECKING)
Awaitable, TYPE_CHECKING)

from pydantic import BaseModel

Expand Down
5 changes: 3 additions & 2 deletions nonebot/plugin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ def matcher(self) -> Set[Type[Matcher]]:


def _store_matcher(matcher: Type[Matcher]):
plugin_name = matcher.module.split(".", maxsplit=1)[0]
_plugin_matchers[plugin_name].add(matcher)
if matcher.module:
plugin_name = matcher.module.split(".", maxsplit=1)[0]
_plugin_matchers[plugin_name].add(matcher)


def on(type: str = "",
Expand Down
3 changes: 2 additions & 1 deletion nonebot/plugin/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def find_spec(self, fullname: str, path, target):
newname = manager._rewrite_module_name(fullname)
if newname:
spec = PathFinder.find_spec(
newname, [*manager.search_path, *(path or [])], target)
newname, [*manager.search_path, *(path or sys.path)],
target)
if spec:
spec.loader = PluginLoader(manager, newname,
spec.origin)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot2"
version = "2.0.0-alpha.13"
version = "2.0.0a13.post1"
description = "An asynchronous python bot framework."
authors = ["yanyongyu <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 916d620

Please sign in to comment.