Skip to content

Commit 1f4a736

Browse files
authored
rename: 🚚 GitHub Organization
1 parent 0b57e17 commit 1f4a736

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# python-injection
22

3-
[![CI](https://github.com/simplysquare/python-injection/actions/workflows/ci.yml/badge.svg)](https://github.com/simplysquare/python-injection)
3+
[![CI](https://github.com/100nm/python-injection/actions/workflows/ci.yml/badge.svg)](https://github.com/100nm/python-injection)
44
[![PyPI](https://badge.fury.io/py/python-injection.svg)](https://pypi.org/project/python-injection/)
55
[![Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
66

β€Žinjection/common/lazy.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, factory: Callable[[], T]):
1717
self.__factory = factory
1818
self.__value = _sentinel
1919

20-
def __setattr__(self, name: str, value: Any):
20+
def __setattr__(self, name: str, value: Any, /):
2121
if self.is_set:
2222
raise TypeError(f"`{self}` is frozen.")
2323

@@ -49,7 +49,7 @@ class LazyMapping(Mapping[K, V]):
4949
def __init__(self, iterator: Iterator[tuple[K, V]]):
5050
self.__lazy = Lazy(lambda: MappingProxyType(dict(iterator)))
5151

52-
def __getitem__(self, key: K) -> V:
52+
def __getitem__(self, key: K, /) -> V:
5353
return self.__lazy.value[key]
5454

5555
def __iter__(self) -> Iterator[K]:

β€Žinjection/core/module.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ class Container:
190190
__data: dict[type, Injectable] = field(default_factory=dict, init=False)
191191
__channel: EventChannel = field(default_factory=EventChannel, init=False)
192192

193-
def __getitem__(self, reference: type[T]) -> Injectable[T]:
193+
def __getitem__(self, reference: type[T], /) -> Injectable[T]:
194194
cls = self.__get_origin(reference)
195195

196196
try:

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords = ["dependencies", "inject", "injection"]
77
license = "MIT"
88
packages = [{ include = "injection" }]
99
readme = "documentation/basic-usage.md"
10-
repository = "https://github.com/simplysquare/python-injection"
10+
repository = "https://github.com/100nm/python-injection"
1111

1212
[tool.poetry.dependencies]
1313
python = ">=3.10, <4"

0 commit comments

Comments
Β (0)